Skip to content
/ django-drf Public template

πŸš€ A ready-to-use Django + Django REST Framework (DRF) template for building scalable RESTful APIs.

License

Notifications You must be signed in to change notification settings

Tomilola-ng/django-drf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Django DRF Template

Python Django PostgreSQL JWT Docker

πŸš€ A ready-to-use Django + Django REST Framework (DRF) template for building scalable RESTful APIs.

Pre-configured with essential features like authentication, permissions, pagination, and more, so you can jumpstart your next project with ease. Perfect for rapid API development and clean architecture.

Features

  • πŸ” JWT Authentication
  • πŸ›‘οΈ Role-based permissions
  • πŸ“„ Customizable pagination
  • 🌐 CORS configuration
  • πŸ“Š Swagger/OpenAPI documentation
  • 🐳 Docker support
  • πŸ§ͺ Pre-configured testing setup

Quick Start

  1. Clone the repository:

    git clone https://github.com/Tomilola-ng/django-drf-template.git
    cd django-drf-template
    
  2. Set up a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
    
  3. Install dependencies:

    pip install -r requirements.txt
    
  4. Run migrations:

    python manage.py migrate
    
  5. Start the development server:

    python manage.py runserver
    

Visit http://localhost:8000/api/ to access the API.

Configuration

  • Environment variables: Copy .env.example to .env and update the values.
  • Database: Configure your database in settings.py or use the default SQLite.
  • Custom user model: Located in users/models.py.

Testing

Run the test suite:

python manage.py test

Deployment

Dockerfile and docker-compose.yml are provided for easy deployment. Adjust as needed for your production environment.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Follow Me

Happy coding! πŸŽ‰

About

πŸš€ A ready-to-use Django + Django REST Framework (DRF) template for building scalable RESTful APIs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published