To setup this project:
- Setup a firebase project
- Copy the Firebase JSON configuration into two files
backend/key.json
frontend/firebaseConfig.json
- While in the
frontend
folder runnpm install
- While in the
backend
folder runpip install -r req.txt
- In the
frontend
folder add a file named.env
and copyREACT_APP_API_URL=url
whereurl
is the web address of the backend
After following these steps you should be able to run both the frontend and backend.
- To run the fronted on a local server, change your directory to the
frontend
folder and runnpm start
- To run the backend on a local server, change your directory to the root of the project and run
python .\backend\app.py
for windowspython ./backend/app.py
for Linux and Mac
mac - export FLASK_DEBUG=develop
windows - set FLASK_DEBUG=develop