Cookiecutter template for easier creation of aiohttp web application hosted on Heroku.
- Testing with py.test.
- Continuous integration with Travis.
- Template rendering with Jinja2.
- JS packages management with npm.
- CSS Framework using siimple.
- Command line interface using Click (optional).
Install the latest Cookiecutter if you haven't installed it yet:
pip install -U cookiecutter
Generate a new aiohttp project
cookiecutter https://github.com/bmwant/templio.git
Then:
- Create a repo and put it there.
- Add the repo to your Travis-CI account (optionally).
- Install the requirements into a virtualenv (
pipenv install
). - Deploy project with
git push heroku:master
.
If you need different project structure of add any improvement - feel free to create a PR or make your own modifications within the fork. For more details about starting new project from this template refer to this article. More information about deployment can be found here.