This is a Django project for tracking the bug reports.
This project is set up to use Django with Poetry for dependency management.
Follow the instructions below to get started or go to the working instance at bugtracker.piotrfura.pl.
- Create and list bug reports.
- User-friendly forms with
django-crispy-forms. - Content moderation for bug report submissions using OpenAI's Moderation API to prevent inappropriate content.
- Python 3.12 or higher
- Poetry
- Git
- Clone the repository
git clone git@github.com:piotrfura/bug_tracker.git - Navigate to the project directory
cd bug_tracker - Set up and activate the virtual environment
python3 -m venv venv && source venv/bin/activate - Install dependencies
poetry install - Create a
.envfile in the root directory with the content based on the.env.examplefile. Make sure to set theSECRET_KEY,DEBUG, andOPENAI_API_KEYvariables appropriately. - Run migrations to set up the database
python3 manage.py migrate - Run the Django development server
python3 manage.py runserver - Access the application at
http://localhost:8000
To deploy the project, you can use a docker container. The Dockerfile is set up to run the Django application with Gunicorn.
- Clone the repository
git clone git@github.com:piotrfura/bug_tracker.git - Build the Docker image
docker build --platform=linux/amd64 -t bug_tracker-amd64 . - Create a
.env.prodfile in the root directory with the content based on the.env.examplefile. Make sure to set theSECRET_KEY,DEBUG, andOPENAI_API_KEYvariables appropriately. - Create a
.env.dbfile in the root directory with the content based on the.env.db.examplefile. - Run the Docker container
docker compose up -d - Access the application at
http://localhost:8009or the port specified in yourdocker-compose.ymlfile.
To run the application in production, you can use a reverse proxy like Nginx or Apache to serve the static files and proxy requests to the Gunicorn server.