Powered by Cookiecutter and inspired by Pydanny's cookiecutter and Cride-platzi and with the goal of optimize our development processes, we are happy to introduce our Django projects boilerplate packed and ready to use with the following features:
- Python 3.11
- Django 5.0
- Django REST Framework 3.14
- 12 Factor based settings
- PostgreSQL as database engine
- Docker as container engine
- Optimized development and production settings
- User app Comes with custom user app ready to go with JWT
- Extra app for example
- Run tests with unittest or pytest
- Flake8 for Style Guide Enforcement
- First, get Cookiecutter. Trust me, it's awesome:
$ pip install cookiecutter
- Run against this repo
$ cookiecutter https://github.com/gianfrancolombardo/cookiecutter-django-api
You'll be prompted for some values. Provide them, then a Django project will be created for you.
- Enter the project and take a look around:
$ cd reddit/
$ ls
To start working on this project I highly recommend you to check pydanny's Django Cookiecutter documentation on how to get this project up and running locally. If you don't want to do so, just run:
$ docker-compose -f local.yml up --build
This project provides a simple application that is responsible for the CRUD of a particular object (Post in this case). It also meets the REST API patterns.
Routes:
GET /post List
POST /post Create
GET /post/123 Retrieve
PUT /post/123 Update
DELETE /post/123 Delete
PATCH /post/123 Partial update
Please fill free to submit pull requests as well as open issues.