
Boilerplate of Django API Server for Multi Tenant Application
Django Boilerplate offers developers a comprehensive foundation for building a RESTful API server specifically tailored for single-page applications (SPAs). This boilerplate embraces a multi-tenant architecture, making it a robust solution for handling various tenant instances effectively. Utilizing PostgreSQL and Gunicorn, it is designed for both development and production environments, ensuring that developers can focus on feature implementation rather than boilerplate configuration.
The framework leverages modern practices including unit testing with pytest instead of Django’s built-in testing tools, and implements JWT for authentication, streamlining security and user management. This boilerplate is ideal for developers aiming to create scalable and maintainable applications using Django and modern development practices.
Multi-Tenant Support: Designed to handle multiple tenant applications seamlessly, allowing for efficient user and data management.
RESTful API Classes: Built using Django REST framework, this boilerplate enables easy creation of RESTful endpoints for SPAs.
Authentication with JWT: Secure user authentication and authorization using JSON Web Tokens for access and refresh, enhancing security measures.
PostgreSQL Integration: Utilizes PostgreSQL as the database, ensuring strong data integrity and performance for complex queries.
Unit Testing with Pytest: Implements pytest for unit testing, providing a more flexible and powerful testing framework compared to Django’s default.
Environmental Variables Management: Easy configuration of environment variables using .env files for both development and production stages.
Docker Support: Simplifies deployment and development by using Docker and docker-compose, allowing for containerized setup of the application environment.
File Management: Automatically removes uploaded files in directories that are no longer in use, maintaining a clean file system.
