- Install Cookiecutter
$ pip install "cookiecutter>=1.7.0"
- Run it against this repository
$ cookiecutter https://github.com/ReznikovRoman/cookiecutter-django-drf
- You'll be prompted for some values. Provide them, then a Django project will be created for you.
Example:
full_name [Roman Reznikov]: John Doe
email [romanreznikov2002@yandex.ru]: john@gmail.com
github_username [ReznikovRoman]: JohnDoe
project_name [Django Project]: Reddit
project_slug [reddit]:
project_short_description []: Reddit - project for ...
timezone [Europe/Moscow]:
use_sentry [y]:
use_pycharm [y]: n
use_black [n]:
- New folder (
reddit_app
) will be created, now you can enter the project:
$ cd reddit_app
$ ls
- Create a git repo:
$ git init
$ git add .
$ git commit -m "Initial commit"
- Install project requirements:
$ python -m venv venv
$ source venv/bin/activate
$ pip install pip-tools
$ make compile-requirements
$ make sync-requirements
$ pip install -r requirements.txt
- Build and run docker containers
$ docker-compose -f docker-compose.yml build
$ docker-compose -f docker-compose.yml up