WIP: Need to add documentation and polish
- Frontend (
cd frontend)- Setup:
npm install - Running locally:
npm run start
- Setup:
- Backend (
cd backend)- Setup:
- Set up virtualenv. For example,
virtualenv venv; source venv/bin/activate- This project supports latest version of python 3.6. I'm using
3.6.8. Later versions may have issues on our deployment framework (Zappa) which deploys to AWS Lambda.
- This project supports latest version of python 3.6. I'm using
pip install -r requirements.txtpip install -r dev-requirements.txt- Set up
config.envfileFLASK_CONFIG=default DATABASE_URL=data-dev.sqlite [email protected] ADMIN_PASSWORD=password FRONTEND_URL=http://localhost:3000 SEND_EMAIL_IN_DEV=False # Sendgrid configs. Only configure if you need to send mail. MAIL_DEFAULT_SENDER=no-reply@<YOUR DOMAIN> SENDGRID_API_KEY=<YOUR_SENDGRID_KEY> # DB configs for production DB_NAME=postgres DB_USERNAME=<YOUR_DB_USERNAME> DB_PASSWORD=<YOUR_DB_PASSWORD> DB_ENDPOINT=<YOUR_DB_ENDPOINT> DB_PORT=5432FLASK_CONFIGcan bedefault,development,staging, andproduction.defaultresolves todevelopment- DB configs are only necessary for production environments
python manage.py recreate_dbpython manage.py setup_dev
- Set up virtualenv. For example,
- Running locally:
python manage.py runserver
- Setup: