Skip to content

This is a Django REST framework backend that offers some basic features and functionality for your project.

Notifications You must be signed in to change notification settings

freezerain/django_rest_base_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Django REST API 🚀

This is a Django REST framework backend that offers some basic features and functionality for your project. You can fork it and build on it to suit your needs.

📝 Description 📝

This is a bare-bones base meant to be a starting point for your development. It already includes some basic features as examples, such as:

  • User authentication and registration
  • Token-based authentication
  • CRUD operations for users, events, groups, and permissions
  • Users are able to subscribe/unsubscribe to events
  • Admin interface

Before starting to work on this project, please take a look at the following files:

  • settings.py: This file contains the configuration settings for the project, such as the installed apps, middleware, database, etc.
  • urls.py: This file defines the URL patterns for the project, such as the API endpoints, the admin site, the login/logout views, etc.

🛠 Getting Started 🛠

🔧 Dependencies 🔧

You will need:

  • Python 3.10+
  • Django 4.2.7
  • Django REST framework 3.14.0
  • SQLite 3
  • pytest 7.4.3

The details can be found in the requirements.txt file.

💻 Installing 💻

To install the project, follow these steps:

  • Clone the repository or download the zip file
  • Create a virtual environment and activate it
  • Install the required packages with the command: $ pip install -r requirements.txt
  • Make the database migrations with the command: $ manage.py makemigrations
  • Apply the migrations with the command: $ manage.py migrate
  • Create a superuser account with the command: $ manage.py createsuperuser
  • Run the development server with the command: $ manage.py runserver

🚀 Running 🚀

The default Django REST framework UI should be accessible on http://127.0.0.1:8000/

The available API endpoints are:

The available Django views are:

🧪 Testing 🧪

To test the project, follow these steps:

  • Run the tests with the command: $ pytest
  • Alternatively, you can run the tests in parallel using multiple CPU cores with the command: $ pytest -n auto

👥 Authors 👥

🔥 Ilia Rodikov - freeze.eli@gmail.com 🔥

About

This is a Django REST framework backend that offers some basic features and functionality for your project.

Resources

Stars

Watchers

Forks

Languages