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.
app/— Expo Router screens, route groups, and navigation layout filescomponents/— reusable UI elements, custom tab bar, map markers, and discovery widgetssrc/— application logic for auth, context, data helpers, and shared typeshooks/— custom React hooks for theming, fonts, discovery data, and platform behaviorconstants/— theme colors, typography tokens, and app-wide constantslib/— shared utility functions for calendar export, event sorting, distance math, and moresupabase/— Supabase configuration, Edge Functions, and database migrations used by the appdocs/— developer documentation and setup guides.github/workflows/— CI workflow for linting and EAS publishing.env.example— example environment variables required to run the app
These are the folders written by the team and required for the app:
app/— main route definitions and screen entry pointscomponents/— reusable UI and presentation componentssrc/— auth, state management, data access, and app behaviorhooks/— shared hooks for fonts, theme, discovery, and platform behaviorconstants/— design tokens and app constantslib/— generic helpers and utilitiessupabase/— backend definitions for Edge Functions and Postgres migrationsdocs/— setup docs and developer guidance
The supabase/ directory includes:
config.toml— Supabase project configuration for local development and function deploymentfunctions/— Edge Functions that run on Supabase and are invoked from the appmigrations/— 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.
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
git clone https://github.com/hamdi-aa/neary.git
cd nearynpm installCreate a local .env file from the example:
cp .env.example .envOpen .env and set your Supabase values:
EXPO_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
EXPO_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_keyDo not commit
.envto source control. It should stay local and private.
If you want to run a local Supabase backend instead of using a hosted Supabase project, install the Supabase CLI:
npm install -g supabaseThen start Supabase from the repo root:
supabase startThis command launches the local Supabase stack using the repo's supabase/config.toml configuration.
To apply the included database migrations, run:
supabase db pushIf you need to reset or reinitialize the local database, you can also use:
supabase db resetAfter 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.
Start the Expo development server:
npm startFrom the Expo screen, choose one of these options:
- Android device/emulator
- iOS simulator (macOS only)
- Physical device via Expo Go
npm run androidRequirements:
- Android Studio installed
- A configured Android emulator or connected Android device
npm run iosRequirements:
- 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 webis possible for small parts of the app, but full functionality (especially map-based event creation) is not supported on web.
- 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.
This app depends on Supabase for:
- authentication
- user profiles
- avatar storage
- follow/save state
- event and ping data
- Edge Function backends
- Create a Supabase project
- Add the
EXPO_PUBLIC_SUPABASE_URLandEXPO_PUBLIC_SUPABASE_ANON_KEYvalues to.env - Configure the required tables, policies, and functions from
SUPABASE_SETUP.md
- Install the Supabase CLI
- Run
supabase start - Use the SQL in
SUPABASE_SETUP.mdor the migration files insupabase/migrations/ - Make sure the app can read the
.envvalues from your local config
-
Lint the project:
npm run lint
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.
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.
README.md— project-level documentationCONTRIBUTING.md— branch/PR and commit guidanceSUPABASE_SETUP.md— Supabase schema and setup detailsdocs/setup.md— local install and environment docsapp/README.md— app folder navigation guide