Skip to content

cookiecutter project that creates a default django rest api and jinja 2 tempates boilerplate

Notifications You must be signed in to change notification settings

dcs3spp/cookiecutter-django-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

django-api-cookiecutter

The cookicutter template of a python package with poetry

Usage

Dependencies

Poetry is used as the Python build tool and dependency manager.

Installation is detailed here.

After installation, configure poetry to create virtualenvs within each project's root folder:

poetry config virtualenvs.in-project = true

Create django docker project using this cookiecutter

$ cookiecutter https://github.com/dcs3spp/cookiecutter-django-api.git
description [desc]: description
docker_image [myimage]: testimage
email [[email protected]]: [email protected]
full_name [Your Name]: X Smith
Select license:
1 - MIT
2 - BSD
3 - GPLv3
4 - Apache Software License 2.0
5 - Not open source
Choose from 1, 2, 3, 4, 5 [1]: 2
project_name [default_project]: test_proj
Select python_version:
1 - 3.8
2 - 3.9
Choose from 1, 2 [1]: 1

Setup project and compile docker image

make setup

Run linters, autoformat, tests etc.

export DJANGO_SECRET_KEY=fortesting
make pretty lint test

Start docker-compose stack

make docker-up

Bump new version

make bump_major
make bump_minor
make bump_patch

About

cookiecutter project that creates a default django rest api and jinja 2 tempates boilerplate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published