Skip to content

dungvv/flask-starter

Repository files navigation

Flask starter

Features

Managing project dependencies

  • (Optional) Create virtual environment: python3 -m venv venv && source venv/bin/activate
  • Install poetry: pip install poetry
  • There're 3 groups of dependencies: main, dev, test
  • Add to main group: poetry add <package_name>
  • Add to dev group: poetry add <package_name> --group dev
  • Add to test group: poetry add <package_name> --group test
  • Install dependencies for project: poetry install

Linting and formatting

  • Format and import: sh scripts/format-import.sh
  • Lint: sh scripts/lint.sh

Database migration

  • Alembic
  • Auto generate migration: alembic revision --autogenerate -m "migration message"

Testing

Deploying with gunicorn + gevent

  • TBD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published