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 - [email protected] πŸ”₯

About

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

Resources

Stars

Watchers

Forks

Languages