Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mbrsagor/backend-drf
Here is this project for Django, Docker, Celery Restful API services. How to write code well structured & nicely develop Django restful APIs.
https://github.com/mbrsagor/backend-drf
docker drf rest-api rest-framework rest-services restful-api
Last synced: 2 months ago
JSON representation
Here is this project for Django, Docker, Celery Restful API services. How to write code well structured & nicely develop Django restful APIs.
- Host: GitHub
- URL: https://github.com/mbrsagor/backend-drf
- Owner: mbrsagor
- Created: 2020-07-20T10:04:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-09T14:30:41.000Z (5 months ago)
- Last Synced: 2024-09-09T17:40:40.730Z (5 months ago)
- Topics: docker, drf, rest-api, rest-framework, rest-services, restful-api
- Language: Python
- Homepage:
- Size: 12.1 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DRF Backend API
> Django Rest framework backend API server which has to implement Celery and Docker.### Setup
The following steps will walk you through installation on a Mac. Linux should be similar.
It's also possible to develop on a Windows machine, but I have not documented the steps.
If you've developed Django apps on Windows, you should have little problem getting
up and running.#### Dependencies
###### Prerequisites- Python 3.8.9
- PostgreSQL 13.2
- Django 3.2
- DockerCreate virtualenv in your system then follow the comments:
```` virtualenv venv --python=python3.8 ````If you successfully create the virtualenv then activate:
```source venv/bin/activate```> Then create `.env` file and paste code from the `.env-sample` file and update valid information.
After that, you may run the `requirements.txt` file following the command:
```bash
pip install -r requirements.txt
./manage.py migrate
./manage.py runserver
```##### If you run the project Docker, please follow the instructions in this self-learning guide.
```base
docker-compose run drfbackend
docker-compose build
docker-compose up
```## Table of contents:
- Well-organized `CRUD` operations
- Custom user model
- User Account
- User Login
- User Registration
- User Account by email
- User Reset Password
- User Reset Password
- JET authentication system
- Token-based authentication system
- SMTP email sendingThere are two branches here.
```
git branch
```
* Master