Welcome to the Wayfinder Project!
First, clone the repository to your local machine using Git:
git clone https://github.com/Munchken105/Wayfinder.gitYou may or may not need to cd into your repo where you cloned it.
cd backend
npm installThis will install the backend dependencies.
Ensure you have PostgreSQL installed on your local machine. To check, simply run this command on a terminal:
postgres --versionIt should display something like:
postgres (PostgreSQL) 17.6
where the number is the version of your installed PostgreSQL. This means that PostgreSQL is properly installed on your local machine.
If an error occurs, you do not have PostgreSQL installed. Download it at this link before going to the next step. Ensure you remember the password you set.
Afterward when it is properly installed, run:
npm run db:initYou may be prompted to type in your password. Enter in your password so the database can be hosted.
Make a .env file in the /backend directory with the following:
DB_USER=postgres
DB_PASSWORD=your_password
DB_HOST=localhost
DB_PORT=5432
DB_NAME=wayfinder
PORT=5000
Replace "your_password" with your own password that connects to the user "postgres" so that the database can run.
npm run devThis will start the development server for the backend.
cd frontend
npm installThis will install the frontend dependencies.
npm run devThis will start the development server for the frontend.
Step 8 - Open a browser and visit http://localhost:5173 to open the frontend
This should connect to the backend automatically.
Login using the Wayfinder Gmail Account (Found on our design document)
Open Terminal
tailscale upssh wayfinder@2ndFloorYou are now sshed into the 2ndFloor Raspberry Pi