Shopify Back-End Dev Intern Challenge Fall 2022
- Clone this repo
- Navigate to the project directory
- Upgrade pip, setuptools, and wheel
- Create and activate a virtual environment
- Install dependencies:
pip install -r requirements.txt
- Install the git hook scripts:
pre-commit install
- Set environment variables in
.env
:
MODE=("development" or "production")
SECRET_KEY=(a random, hard to guess string)
PROD_DATABASE_URI=(the connection string of your database)
DEV_DATABASE_URI=(the connection string of your database)
- Generate migration:
flask db migrate
- Apply migrations:
flask db upgrade
- Run tests:
pytest tests/
- Start the server:
python wsgi.py