Getting Started
What you need
- Your preferred IDE or text editor
- Node.js installed
- Supabase account
- Optionally, Vercel account (or your preferred web hosting service)
What to do (Overview)
- Create a new project in Supabase
- Create the required database tables using the schema
- Clone the PathFinder project
- Go to the directory of the repository
- Create and add environment variables to a
.env
file npm install --legacy-peer-deps
to automatically install required dependenciesnpm start
to start running the web application- Wait for it to load, it will automatically open the web application in your broswer.
Cloning PathFinder
Checkout with SVN
https://github.com/lhy-hoyin/PathFinder.git
Using GitHub CLI
gh repo clone lhy-hoyin/PathFinder
Environment Variables
At the root directroy of the repository, create a .env
or .env.development.local
file.
This file is used to hold the Supabase information specific to your project.
Note: This file should not be committed to GitHub.
REACT_APP_SUPABASE_URL=https://YOUR_PROJECT_URL.supabase.co
REACT_APP_SUPABASE_ANON_KEY=YOUR_PROJECT_PUBLIC_API_KEYS
You can retrieve your project URL and API keys by logging into Supabase project >
Settings
>API
If you are hosting PathFinder, you will also need to include these environment variables to the web hosting platform.