https://github.com/cocoakekeyu/django-api-startup
This is a simple django project for HTTP JSON API.
https://github.com/cocoakekeyu/django-api-startup
Last synced: 8 months ago
JSON representation
This is a simple django project for HTTP JSON API.
- Host: GitHub
- URL: https://github.com/cocoakekeyu/django-api-startup
- Owner: cocoakekeyu
- Created: 2018-06-18T03:12:40.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-19T08:25:55.000Z (almost 8 years ago)
- Last Synced: 2025-04-07T00:55:58.853Z (about 1 year ago)
- Language: Python
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django api startup
### Introduction
This is a simple django project for HTTP JSON API.
### Main stack
- Web Framework: Django
- Database: PostgreSQL
- Test: Pytest
- Authorization: cancan PyJWT
- Fake data: model-mommy Faker
- Environment: python-dotenv
- Serialization: djangorestfreamwork
- Filter: django-filter
### Getting started
- dotenv sample: see [.env.sample](.env.sample)
- new dotenv for multiple environments, e.g.: `.env.development` `.env.test`
- export environments: `export DJANGO_ENV=.`
- create database and user for current enviroment config
- migrate database: `./manage.py migrate`
- run test: `pytest tests`