This project is a logistics management system consisting of a backend and frontend application. The backend is built with Django, and the frontend is developed using a modern JavaScript framework. Both are containerized with Docker for easy deployment.
- Backend: Logistika Backend Repository
- Frontend: Logistics Dashboard Repository
git clone https://github.com/ShohjahonObruyevOybekovich/Logistika.git
cd Logistika
Create a .env
file in the root directory with the following variables:
SECRET_KEY='your-secret-key'
ALLOWED_HOSTS='your-allowed-hosts'
POSTGRES_DB='postgres_db_name'
POSTGRES_USER='postgres_user'
POSTGRES_PASSWORD='1'
POSTGRES_HOST='postgres_host'
POSTGRES_PORT=5432
sudo docker compose up -d --build
docker exec -it django python manage.py makemigrations
docker exec -it django python manage.py migrate
Once the backend is running, you can access it at your specified domain or IP (configured in ALLOWED_HOSTS
).
git clone https://github.com/Sadriddin0124/logistics-dashboard.git
cd logistics-dashboard
pnpm i
pnpm build
pm2 start "pnpm start" --name "front"
pm2 status
Ensure that your Nginx is configured to route requests to both the backend and frontend appropriately. Example configuration:
server {
listen 80;
server_name your-domain.com;
location /api/ {
proxy_pass http://localhost:8000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location / {
root /path/to/frontend/build;
index index.html;
try_files $uri /index.html;
}
}
- Open your browser and navigate to your configured domain or IP address.
- The first page you will see is the login page.
- Log in using the superuser credentials you created during setup.
- Ensure Docker, PM2, and Nginx are installed and properly configured on your server.
- Replace placeholders (e.g.,
your-domain.com
,your-secret-key
) with actual values. - For any issues, refer to the respective repository documentation or raise an issue on GitHub.
- Backend Developer: ShohjahonObruyevOybekovich
- Frontend Developer: Sadriddin0124