Skip to content
hamdi-aaPublic

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Neary

Neary is a mobile-first social discovery app built with Expo, React Native, and Supabase. The app is designed to help users discover nearby events, follow friends, and save interests in a location-aware experience.

This project is intended for Android and iOS. Web support is limited, and features such as map-based event creation are not fully available on web.

What this repository includes

  • app/ — Expo Router screens, route groups, and navigation layout files
  • components/ — reusable UI elements, custom tab bar, map markers, and discovery widgets
  • src/ — application logic for auth, context, data helpers, and shared types
  • hooks/ — custom React hooks for theming, fonts, discovery data, and platform behavior
  • constants/ — theme colors, typography tokens, and app-wide constants
  • lib/ — shared utility functions for calendar export, event sorting, distance math, and more
  • supabase/ — Supabase configuration, Edge Functions, and database migrations used by the app
  • docs/ — developer documentation and setup guides
  • .github/workflows/ — CI workflow for linting and EAS publishing
  • .env.example — example environment variables required to run the app

Essential folders for app functionality

These are the folders written by the team and required for the app:

  • app/ — main route definitions and screen entry points
  • components/ — reusable UI and presentation components
  • src/ — auth, state management, data access, and app behavior
  • hooks/ — shared hooks for fonts, theme, discovery, and platform behavior
  • constants/ — design tokens and app constants
  • lib/ — generic helpers and utilities
  • supabase/ — backend definitions for Edge Functions and Postgres migrations
  • docs/ — setup docs and developer guidance

What is in supabase/

The supabase/ directory includes:

  • config.toml — Supabase project configuration for local development and function deployment
  • functions/ — Edge Functions that run on Supabase and are invoked from the app
  • migrations/ — database migration SQL files for required tables and policies

This folder is part of the app’s backend support and is not a pre-installed module.

Prerequisites

Before running the app locally, you need:

  • Node.js 20.x
  • npm
  • Expo CLI available via npx expo
  • A Supabase project or local Supabase instance
  • For Android: Android Studio and an Android emulator or physical device
  • For iOS: macOS with Xcode installed and the iOS Simulator available

Step-by-step local setup for beginners

1. Clone the repository

git clone https://github.com/hamdi-aa/neary.git
cd neary

2. Install dependencies

npm install

3. Configure environment variables

Create a local .env file from the example:

cp .env.example .env

Open .env and set your Supabase values:

EXPO_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
EXPO_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key

Do not commit .env to source control. It should stay local and private.

4. Start Supabase locally (optional)

If you want to run a local Supabase backend instead of using a hosted Supabase project, install the Supabase CLI:

npm install -g supabase

Then start Supabase from the repo root:

supabase start

This command launches the local Supabase stack using the repo's supabase/config.toml configuration.

To apply the included database migrations, run:

supabase db push

If you need to reset or reinitialize the local database, you can also use:

supabase db reset

After starting Supabase, make sure your .env file points to the local project URL if required.

If you prefer hosted Supabase instead of local development, follow SUPABASE_SETUP.md to configure the required tables, policies, and functions.

5. Launch the app with Expo

Start the Expo development server:

npm start

From the Expo screen, choose one of these options:

  • Android device/emulator
  • iOS simulator (macOS only)
  • Physical device via Expo Go

6. Run on Android

npm run android

Requirements:

  • Android Studio installed
  • A configured Android emulator or connected Android device

7. Run on iOS

npm run ios

Requirements:

  • macOS with Xcode installed
  • iOS Simulator enabled
  • Proper permissions for iOS simulator and simulator device access

Note: This is a mobile app first. Running npm run web is possible for small parts of the app, but full functionality (especially map-based event creation) is not supported on web.

App behavior and platform notes

  • The app is built for native mobile use on Android and iOS.
  • Map features and event creation rely on native device APIs and may not work correctly in a browser.
  • The web route is present for basic navigation, but the best experience is on mobile.

Supabase support

This app depends on Supabase for:

  • authentication
  • user profiles
  • avatar storage
  • follow/save state
  • event and ping data
  • Edge Function backends

If using hosted Supabase

  1. Create a Supabase project
  2. Add the EXPO_PUBLIC_SUPABASE_URL and EXPO_PUBLIC_SUPABASE_ANON_KEY values to .env
  3. Configure the required tables, policies, and functions from SUPABASE_SETUP.md

If using local Supabase

  1. Install the Supabase CLI
  2. Run supabase start
  3. Use the SQL in SUPABASE_SETUP.md or the migration files in supabase/migrations/
  4. Make sure the app can read the .env values from your local config

Running validation

  • Lint the project:

    npm run lint

CI/CD

This repository includes a GitHub Actions workflow at .github/workflows/expo.yml. It installs dependencies, runs npm run lint, and publishes updates through Expo EAS.

Developer process

Use CONTRIBUTING.md for branch and PR guidance. This repo also has .github/PULL_REQUEST_TEMPLATE.md to help create clear review-ready pull requests.

Helpful files

  • README.md — project-level documentation
  • CONTRIBUTING.md — branch/PR and commit guidance
  • SUPABASE_SETUP.md — Supabase schema and setup details
  • docs/setup.md — local install and environment docs
  • app/README.md — app folder navigation guide

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages