Skip to content

svenstaro/python-web-boilerplate

Repository files navigation

Python Web Boilerplate

Build Status codecov license

About

This is a boilerplate project made using best practices for getting started quickly in a new project. I made this for myself but maybe it will help someone else. Pull requests and discussions on best practices welcome!

Development setup

Install all dependencies into a virtualenv which will be managed by poetry.

make

Set up your environment by sourcing copying .env.example to .env

cp .env.example .env

For every new shell you need to source this file and you're good to go.

Make sure you have a working local postgres setup. Your current user should be admin in your development postgres installation and it should use the "peer" or "trust" auth methods (see pg_hba.conf). Given that, create a local development database with some test data:

flask initdb

Afterwards, type

flask run

to run the development server.

Running the tests

Start a local postgresql server and run:

poetry run pytest

About

Python web template for modern web backend applications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages