An open API service indexing awesome lists of open source software.

https://github.com/diaga/django-api-template

Template for creating robust APIs with django rest framework!
https://github.com/diaga/django-api-template

api django-rest-framework docker postgresql python template test-driven-development travis-ci

Last synced: 2 months ago
JSON representation

Template for creating robust APIs with django rest framework!

Awesome Lists containing this project

README

          

# django-api-template
[![Build Status](https://travis-ci.com/Diaga/django-api-template.svg?branch=master)](https://travis-ci.com/Diaga/django-api-template)

Template for creating robust APIs with django rest framework!

This template contains configured Dockerfile, docker-compose and .travis.yml files.

## Project Structure
All models are placed in models.py file in 'app' folder along with unit tests.

All unit tests are placed in the 'tests' folder inside each app.

Each section of the API is allotted its own app inside django.

## Setup
Update requirements.txt file with latest versions of libraries.

Set suitable user & password for database in docker-compose file.

## Commands
* Start new app:
```shell script
python manage.py template_startapp
```
* Run unit tests:
```shell script
python manage.py test && flake8
```

## ToDo
Add commands to easily create customized user