A modern and advanced Django project setup that integrates REST APIs, Docker-based environments, and GitHub Actions for CI/CD.
This project is designed as a boilerplate or learning resource for building scalable and production-ready Django applications.
- ✅ RESTful API using Django REST Framework (DRF)
- ✅ Docker support with Docker Compose for local development and deployment
- ✅ CI/CD pipeline using GitHub Actions
- ✅ Clean project structure based on best practices
- ✅ Environment configuration for development and production
- ✅ Simple database setup with SQLite (can be changed to PostgreSQL/MySQL)
- Python
- Django
- Django REST Framework (DRF)
- Docker & Docker Compose
- GitHub Actions
- SQLite
git clone https://github.com/mohrezvelayati/Django-Advance.git
cd Django-Advance
2. Run with Docker
bash
Copy
Edit
docker-compose up --build
The app will be accessible at http://localhost:8000
📡 API
This project includes RESTful API endpoints using Django REST Framework (DRF). You can build backend services or integrate with a frontend (like React/Vue/Flutter) or mobile app.
To test the API, you can use tools like Postman or cURL.
Example endpoints:
GET /api/items/ – List all items
POST /api/items/ – Create a new item
GET /api/items/<id>/ – Retrieve a specific item
(Endpoints may vary depending on your models – update this section accordingly if needed)
⚙️ CI/CD (GitHub Actions)
This project includes a GitHub Actions workflow file:
Runs unit tests
Lints code
Can be extended for deployment (Heroku, Railway, VPS, etc.)
📂 Project Structure
bash
Copy
Edit
├── app/
│ ├── core/ # Main app logic
│ ├── api/ # DRF-based APIs
│ ├── templates/ # HTML templates (optional)
│ ├── settings/ # Django settings (dev/prod)
│ └── manage.py
├── docker/
│ └── Dockerfile
├── docker-compose.yml
├── requirements.txt
└── .github/workflows/ # GitHub Actions config
📄 License
This project is open-source and available under the MIT License.
🙋♂️ Author
Made with ❤️ by Mohrez Velayati