Our app allows users to organize, find, and join pick-up games in a convenient and streamlined manner. Users have access to nearby games that fit their skill level and match the desired sport, while organizers can share and coordinate games with their friends or anyone nearby. Organizers can control game visibility (public vs. private), accept or reject user requests to join a game, and invite specific users to join, allowing full control over who has access to the game location and details. Organizers can coordinate user responsibilities for bringing gear, equipment, and more. Users can add friends and communicate easily with each other through game-specific chatrooms.
A quick introduction of the minimal setup you need to get the app up & running on a local computer. For example, your advisor might use the instruction here to run the application locally.
-
Make sure you have these prerequisites installed: npm and Expo CLI.
-
Clone the repository and navigate to the root folder in the terminal.
-
Add a
.envfile in the root folder of this repository containing the fields in the.env.examplefile, and fill in the required environment variables. -
Run
npm installto install dependencies. -
To use the Expo Go app:
a. Download the Expo Go app on your phone.
b. Run
npx expo start --go.c. Scan the QR code with the Expo Go app (Android) or the Camera app (iOS) and open the link.
-
To locally build the project:
a. On iOS, to run the simulator on Xcode:
expo prebuild --platform ios npx expo run:ios
b. On Android (not tested yet):
expo prebuild --platform android npx expo run:android
-
To login as a test user to the app, use the following credentials:
email: admin@example.com password: password
Detailed and step-by-step documentation for setting up local development. For example, a new team member will use these instructions to start developing the project further.
You should include what is needed (e.g. all of the configurations) to set up the dev environment. For instance, global dependencies or any other tools (include download links), explaining what database (and version) has been used, etc. If there is any virtual environment, local server, ..., explain here.
Additionally, describe and show how to run the tests, explain your code style and show how to check it.
See the above instructions to install and run the Expo app locally.
If you are getting errors that involve Unable to resolve "@tamagui/themes from tamagui.config.ts after running pnpm install, then run pnpm add @tamagui/themes.
To run the Jest tests: npm run test.
To run prettier: npm run prettier.
View the tutorial to set up Supabase local development here. Follow these steps to set up local development and deploy the changes to the remote database.
- Login to Supabase using the team password:
npx supabase login. - Make sure the Docker engine is running and initialize Supabase:
supabase init. - Start the Supabase services:
npx supabase start(similarly,npx supabase stopwill stop the services). Once the command has finished running, navigate tohttp://localhost:54323to view the local dashboard. - Associate the project with the remote project and pull the remote schema. After running these commands, you should see the remote schema in
supabase/migrations/<timestamp>_remote_schema.sql.
npx supabase link --project-ref <project-id>
# You can get <project-id> from your project's dashboard URL:
# https://supabase.com/dashboard/project/<project-id>
npx supabase db pull
-
To create a new migration file:
npx supabase migration new <migration-name>. To reset the local database and run the migration:npx supabase db reset. -
To deploy a local database migration:
npx supabase db push. -
To run the unit tests:
npx supabase test db.
Follow the instructions to create a build here and here.
- Prerequisites: install
expo-dev-client(npx expo install expo-dev-client) and EAS CLI (npm install -g eas-cli). - Login to your EAS account:
eas login. - For iOS: run
eas build --profile development-simulator --platform ios. For Android: runeas build --profile development --platform android. - Run
npx expo start --dev-client. - Download and unzip the build from the Expo dashboard.
- Open the Xcode simulator and drag the build onto the simulator screen.
- Open the Pickup! app.