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.txt
pip install -r dev-requirements.txt
- Set up
config.env
fileFLASK_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=5432
FLASK_CONFIG
can bedefault
,development
,staging
, andproduction
.default
resolves todevelopment
- DB configs are only necessary for production environments
python manage.py recreate_db
python manage.py setup_dev
- Set up virtualenv. For example,
- Running locally:
python manage.py runserver
- Setup: