You must run both the frontend app and backend app for them to communicate.
Make sure that all dependencies are installed. The frontend dependencies are through node and npm. The backend dependencies are through the requirements.txt
in the backend directory.
cd
to the frontend directory- run
npm i
to install necessary Node/Angular packages - run
npm run start
- open localhost:4200 in browser
NOTE: Do not remove or delete the database or migrations folder. The database has been created and seeded appropriately.
cd
to the backend directory- run
pip3 install -r requirements.txt
to install dependencies - on mac or linux, run
./flast-restart-on-file-change.sh
; on windows runset FLASK_DEBUG=1 && set FLASK_APP=app.py && flask run
If you want to see the current state of the database you can go to http://127.0.0.1:5000/list in your browser (or localhost:5000/list)
You can create an account, add your trips, view other user's mapt (if they are public), and see statistics about your travel history! Using the version of app.db given in the repo, you can view a sample profile by going to localhost:4200/1
So that Gradescope wouldn't unzip our files, we are saving it as a .zp file. You can rename it as a zip file and decompress it to run as normal.