Skip to content

Here is this project for Django, Docker, Celery Restful API services. How to write code well structured & nicely develop Django restful APIs.

Notifications You must be signed in to change notification settings

mbrsagor/backend-drf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e537a5d · Feb 21, 2025
May 11, 2023
Feb 12, 2025
Jan 29, 2025
Jul 25, 2023
Dec 17, 2021
Feb 21, 2025
Apr 1, 2023
Feb 10, 2023
May 20, 2021
Jan 25, 2022
Apr 1, 2023
Jul 28, 2023
Feb 4, 2024
Jan 13, 2025
Dec 30, 2024
Feb 12, 2025
Apr 15, 2021
Jan 14, 2025
Jan 8, 2025

Repository files navigation

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
  • Docker

Create 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:

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.
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 sending

There are two branches here.

git branch
  • Master

About

Here is this project for Django, Docker, Celery Restful API services. How to write code well structured & nicely develop Django restful APIs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages