Skip to content

LandonWest/friday-night

Repository files navigation

FridayNight

Setup

  1. python -m venv venv

  2. source venv/bin/activate

  3. venv/bin/pip install -e . -r requirements.txt -r requirements-dev.txt

Database

Create the db from scratch from current migrations or run a new migration

  1. venv/bin/alembic upgrade head

Auto-generate an alembic migration from a model. Example:

  1. Add your models MetaData object to alembic/env.py ex. from friday_night.models.user import Base

  2. venv/bin/alembic revision --autogenerate -m "Added accounts table"

Test

  1. venv/bin/pytest tests [-s, -k]

With coverage reports

  1. venv/bin/coverage run -m pytest tests

  2. Use venv/bin/coverage report to report on the results (or coverage html and open in browser)

Run

  1. venv/bin/gunicorn --reload "friday_night.app:get_app()"

About

FridayNight - Track movies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages