Good Shit is an interactive toilet finder designed to help UNSW students plan and find their ideal bathroom breaks.
Prerequisites Before you start, make sure that you have the following software installed.
- Git (standard on Linux) or GitHub Desktop
- Node.js and npm (usually bundled with Node.js)
Clone the repository:
$ git clone git@github.com:csesoc/trainee-1-2-23t2.gitFrom the root of the repository run the following command to download dependencies:
$ cd backend && npm i && cd ../frontend && npm i && cd ..NPM install in both the backend and frontend directories.
To run the frontend run navigate to the /frontend directory and run npm run dev - i.e.
$ cd frontend && npm run devfrom root or
$ npm run devfrom the /frontend directory.
Run to run the backend:
- Navigate to the
/backenddirectory:
$ cd backend- Create a
.envfile in the root of the project containing:
MONGO_URI = [YOUR_MONGO_URI];
JWT_SECRET = [YOUR_JWT_SECRET];- To start the server, run:
$ npm start