FSF (Faculty Staff Fitness) is an app where users join teams and compete against other teams based on the number of steps they take. It is event-based with one event held each month. The project consists of two parts: a web application for event organizers and a mobile application for users. We are also using Starlight for the documentation of the project.
- Node.js
- npm (Node Package Manager)
Make sure the .env file does not get pushed to the github repo (there should already be implementation that prevents this)
# /src-web-app/.env or /src-mobile-app/.env or
PUBLIC_SUPABASE_URL="https://kxxogajirafpgyapruer.supabase.co"
PUBLIC_SUPABASE_ANON_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imt4eG9nYWppcmFmcGd5YXBydWVyIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Mjk2MjIwNTksImV4cCI6MjA0NTE5ODA1OX0.rETttMwR_LeLb9d7KRablKMPbdQSVa-oFZaziCcgttg"
PUBLIC_DEV_SUPABASE_URL="http://localhost:54321"
PUBLIC_DEV_SUPABASE_ANON_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imt4eG9nYWppcmFmcGd5YXBydWVyIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Mjk2MjIwNTksImV4cCI6MjA0NTE5ODA1OX0.rETttMwR_LeLb9d7KRablKMPbdQSVa-oFZaziCcgttg"
-
Clone the repository:
git clone https://github.com/OregonStateUniversity/osu-fsf.git
-
Navigate to the web app directory:
cd src-web-app
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
```bash
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
```
To create a production version of your app:
```bash
npm run build
```
You can preview the production build with `npm run preview`.
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
-
Clone the repository
git clone https://github.com/OregonStateUniversity/osu-fsf.git
-
Navigate to the mobile app directory:
cd src-mobile-app
-
Install the dependencies:
npm install
-
Start the Expo development server:
npm run start
This is a Expo + React Native project.
The dev server can be ran via
npm run start
.Notable libraries used:
- NativeWind (port of Tailwind, used for application styling)
- React Redux (state management)
src
- application routescomponents
- reusable React Native componentsassets
- static files needed by the applicationconstants
- definitions files such as theme colors
Supabase CLI installation instructions can be found in the Getting Started documentation.
NOTE: Docker Desktop is a prerequisite, please ensure it is installed on your system.
supabase start
: start the local development environmentsupabase stop
: stop the local development environmentsupabase db reset --local
: wipes the local database and freshly seeds it usingseed.sql
Please refer to the Supabase CLI documentation (and Supabase documentation in general) for more advanced CLI commands and their descriptions.
Everything you need to know about the project is in the Starlight documentation.
- Clone the repository:
git clone https://github.com/OregonStateUniversity/osu-fsf.git
- Navigate to the Starlight directory:
cd src-docs
- Install the dependencies:
npm install
- Start the development server:
npm run dev