A clean Python template for your next REST projects.
- Scalable folder structure
- Consistent style, be productive with useful pre-commit hooks
- i18n support
This repo contains a demo for a chat app. You can create threads, messages. Here are all APIs in the repo:
You need to install Pipenv in your machine.
pipenv shell
pipenv install
pipenv install --dev
pre-commit install # install pre-commit hooks
cp config.yaml.example config.yaml
# update your app config in config.yaml
pipenv run app
Now, you can check API docs located at http://localhost:8000/docs .
pipenv run test
To show code coverage, just run:
pipenv run test-cov
In order to show code coverage in VsCode, you will need to install Coverage Gutters extension.
cp alembic.ini.example alembic.ini
# update alembic.ini config file
alembic upgrade head
./extract_messages.sh
# update your translation in `base.po` files
./update_translation.sh