Skip to content

Yab1/template-django-graphql

Repository files navigation

Django App Template

This repository serves as a template for quickly setting up Django applications. It includes a variety of pre-configured features and tools to streamline development.

Features

  • Docker Compose: Easily manage your PostgreSQL database with Docker.
  • Authentication: Pre-configured authentication setup for secure user management.
  • Django REST Framework: Build powerful APIs with ease.
  • DRF Spectacular: Automatically generate OpenAPI schema for your APIs.
  • Django Guardian: Implement object-level permissions.
  • Django Easy Audit: Track changes in your models with audit logging.
  • Inspired by Hacksoft Django Style Guide: Follow best practices and coding standards.

Getting Started

Prerequisites

Setup

  1. Clone the repository:
    git clone https://github.com/yourusername/django-app-template.git
    cd django-app-template
  2. Create a logs directory:
    mkdir logs
  3. Install Python dependencies:
    make install-all-requirements
  4. Copy the environment file:
    cp .env.example .env
  5. Start the Docker containers:
    docker-compose up -d
  6. Run migrations:
    make migrate
  7. Create a superuser (optional):
    make superuser
  8. Access the development server: Visit http://localhost:8000 in your web browser.

Usage

  • Use the Django admin interface for managing users and models.
  • Access your API endpoints via the /api/ path.
  • Generate the API schema with:
    make generate-schema

Contributing

Feel free to make improvements or add features! Please submit a pull request for any major changes.

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published