nosagadu / cookiecutter-django-api

Cookiecutter Django Api is a framework for jumpstarting production-ready Django projects quickly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django Api Cookiecutter

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.6
  • Django 3.0.6
  • Django REST Framework 3.9.1
  • 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

Installation

  1. First, get Cookiecutter. Trust me, it's awesome:
$ pip install cookiecutter
  1. Run against this repo
$ cookiecutter https://github.com/nosagadu/cookiecutter-django-api

You'll be prompted for some values. Provide them, then a Django project will be created for you.

  1. Enter the project and take a look around:
$ cd reddit/
$ ls

Development

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

Extra

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

Contributing

Please fill free to submit pull requests as well as open issues.

About

Cookiecutter Django Api is a framework for jumpstarting production-ready Django projects quickly.


Languages

Language:Python 60.0%Language:HTML 25.0%Language:Shell 11.4%Language:Dockerfile 3.6%