Install wsl on windows click here
Install docker and docker compose click here
For SSH method
git clone [email protected]:kaditya97/gesan-geodjango-training.git
For https method
git clone https://github.com/kaditya97/gesan-geodjango-training.git
Change permission if needed sudo chmod -R 777 gesan-geodjango-training/
cp docker-compose.sample.yml docker-compose.yml
cp Dockerfile.sample Dockerfile
cp env_sample .env
cp requirements_sample.txt requirements.txt
cp apt_requirements_sample.txt apt_requirements.txt
cp geoserver_env_sample.txt geoserver_env.txt
Start services in detach mode
docker compose up -d
Rebuild if required
docker compose build
View Running Services
docker compose ps
View log of a service e.g. web
docker compose logs -f web
Exec services
docker compose exec -it web bash
Stop services
docker compose down
Make migrations
python3 manage.py makemigrations
Migrate to DB
python3 manage.py migrate
Run Server
python3 manage.py runserver