-
Start the application using Docker Compose:
docker-compose -f ./docker-compose.local.yml up -d
-
Access the application at http://localhost:8000.
- API documentation URL: http://localhost:8000/api/v1/docs
-
To stop the application:
docker-compose -f ./docker-compose.local.yml down
-
Install dependencies:
uv sync source .venv/bin/activate
-
Initialize the
.env
file:cp .env.example .env
-
Update the
.env
file with your environment variables. -
Migrate the database:
python manage.py migrate
-
Start the development server:
python manage.py runserver 0.0.0.0:8000
-
Access the application at http://localhost:8000.
- API documentation URL: http://localhost:8000/api/v1/docs
-
Build the Docker image:
docker build \ --build-arg ENV=dev \ --build-arg SECRET_KEY=your_key \ --build-arg ALLOWED_HOSTS=localhost \ --build-arg HOST=http://localhost:8000/ \ --build-arg DB_NAME=django_template \ --build-arg DB_USERNAME=your_username \ --build-arg DB_PASSWORD=your_password \ --build-arg DB_HOST=host.docker.internal \ --build-arg DB_PORT=5432 \ --build-arg JWT_SIGNING_KEY=your_key \ --build-arg CORS_ALLOWED_ORIGINS=http://localhost:8000 \ -t django-template:latest .
-
Run the Docker container:
docker run -p 8000:80 django-template
To ensure code quality, install pre-commit hooks:
pre-commit install
This project is Copyright (c) 2023 and onwards Digital Fortress. It is free software and may be redistributed under the terms specified in the LICENSE file.
This project is made and maintained by Digital Fortress.
We are an experienced team in R&D, software, hardware, cross-platform mobile and DevOps.
See more of our projects or do you need to complete one?