commit 1c909a335490a661eb874278a6d755a826f24a2f Author: Your Name Date: Thu Apr 9 12:06:16 2026 +0530 feat: initialize project with environment template, gitignore, and docker-compose configuration diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..6cf238d --- /dev/null +++ b/.env.example @@ -0,0 +1,18 @@ +# DATABASE +DB_NAME=piku +DB_USER=user +DB_PASSWORD=password123 +DB_HOST=localhost +DB_PORT=5432 + +# DJANGO +DEBUG=True +SECRET_KEY=django-secret-key +ALLOWED_HOSTS=localhost,127.0.0.1 + +# EMAIL +EMAIL_HOST=localhost +EMAIL_PORT=1025 + +# FRONTEND +VITE_API_URL=http://localhost:8000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..405c31b --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +# Environment variables +.env + +# Frontend +node_modules/ +dist/ +.vite/ + +# IDE +.vscode/ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a61d6bd --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,26 @@ +services: + db: + # postgres database + image: postgres:16-alpine + container_name: piku_db + environment: + POSTGRES_DB: ${DB_NAME} + POSTGRES_USER: ${DB_USER} + POSTGRES_PASSWORD: ${DB_PASSWORD} + ports: + - "${DB_PORT}:5432" + volumes: + - postgres_data:/var/lib/postgresql/data + restart: always + + mailpit: + # email testing + image: axllent/mailpit + container_name: piku_mail + ports: + - "8025:8025" # Web UI + - "${EMAIL_PORT}:1025" # SMTP + restart: always + +volumes: + postgres_data: