NOTE: Before cloning the repo, make sure to have the following installed/set up:
- Visual Studio Code: https://code.visualstudio.com/
- NodeJS: https://nodejs.org/en
- Git CLI: https://docs.github.com/en/get-started/getting-started-with-git/set-up-git
- MongoDB Account: https://www.mongodb.com/
If you run into any issues with the following steps, please feel free to reach out to Nimita Deshpande (nimitadesh) or Nirranjan Akilan (n2akilan458) on Discord to receive further assistance!
- In the terminal/command prompt, navigate to the folder in which you want to clone the repo
- Enter the following command to clone the repo:
git clone https://github.com/nimitadesh/office-exercise-app
- Open the project in VS Code
- Open a new terminal tab in VS Code and type the following command to checkout the main branch
git checkout main
- Add a blank .env file under the server folder
- Direct message either of us on Discord to get the .env credentials
- Copy-paste these credentials into the blank .env file you created in step 1 (NOTE: You may need to request access to the MongoDB database for your username before running the backend. Please reach out to either of us on Discord to request access!)
- Open a new terminal tab in VS Code and enter the following command to navigate to the server folder:
cd server
- Install all dependencies using the following command:
npm i
- In the same tab, enter the following command to start the backend:
npm run dev
- Open a new terminal tab in VS Code and enter the following command to navigate to the client folder:
cd client
- Install all dependencies using the following command:
npm i
- In the same tab, enter the following command to start the backend:
npm start
Once the backend and frontend are up and running, navigate to http://localhost:3000/ in your browser to view the application.