- Python 3.7 is required to to run the core server
- Pipenv is used for managing Python dependency packages
- Node.js and NPM are also needed for the front end.
- Create Python virtual environment and install (dev-)dependency packages
- This can be done with
pipenv install --dev - The dependencies will be determined from the
Pipfilefile
- This can be done with
- Activate the virtual environment
- This can be done with
pipenv shell - This needs to be done every time you start development
- This can be done with
- Install dependencies
- This can be done with
npm install
- This can be done with
- Build static assets
- This can be done with
npm run start
- This can be done with
- Activate the virtual environment with
pipenv shell- This should be done any time you open a new terminal for development
- Deactivate the virtual environment with
deactivate
- After activating python virtual environment, deploy the python server with the command
flask run - The front-end server can be started with the command
npm run start - The server can be found at
localhost:3000
- To start up the project, install Docker and Docker for your terminal.
- Run the command
docker compose upto run the project in your local environment. - If login isn't working, please follow the
GOOGLE OAuth Requiredstep where you will need to make a file called./server/.envand follow the steps below in order to get login to work.
- The login service requires Google OAuth credentials in order to be usable. Please create your own
.envfile in the directory./serverand fill outGOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRETby using the steps inCreate authorization detailsfrom https://developers.google.com/identity/sign-in/web/sign-in