Repository for Group 5 in the CSU44098 Group Design Project module.
Follow these steps to run the app. You'll need to split your terminal into two:
one for the frontend and another for the backend.
-
Navigate to the Backend Directory
cd ./backend -
Install the required dependencies using pip:
pip install -r requirements.txt
-
Create a .env file
- Create a file named
.envin the backend directory. - Add the following content to the file:
DB_NAME=pathpal DB_HOST=cluster0.5saounj.mongodb.net DB_USERNAME=[YOUR_USERNAME] DB_PASSWORD=[YOUR_PASSWORD]- Replace
[YOUR_USERNAME]and[YOUR_PASSWORD]with given an username and a password in Backends section.
- Create a file named
-
Start the backend server by running:
python run.py
- The server-side is listening at port
3001.
- The server-side is listening at port
- Navigate to the Frontend Directory
cd frontend - Install the required dependencies using npm:
npm install
- Start the frontend by running:
npm start
- If you see the message from Flask on
http://localhost:3000, it means everything is working correctly!
-
Navigate to the Backend Director and Execute the Tests
- Run the following command to execute the tests. This will trigger the backend tests and display a summary in the terminal:
cd ./backend python run_pytest.py -
View Test Coverage and Report
- Coverage report.
- Open
./backend/backend_test/coverage/index.htmlto view the coverage report.
- Open
- Summary report.
- Open
./backend/backend_test/report.htmlto view the summary report.
- Open
- Coverage report.
- Geeting User Routes
- The frontend is running on http://localhost:3000.
- Go to the login page by clicking the login button on the header.
- Login with the username: test, password: 1234.
- Go to the My Account page by clicking the my account button on the header.
- On the My Account Page, it will show a route uploaded by the user.
Running on http://localhost:3001
More information about Backend here
MongoDB is used as the database for this project.
information about the database:
DB_USERNAME=PathPalAdmin
DB_PASSWORD=YOAybG23XVTqQnri