This is a Django project setup with Docker Compose for easy development and deployment.
- Docker
- Docker Compose
-
Clone the repository:
git clone https://github.com/Allexik/starnavi_test.git cd starnavi_test
-
Create a
.env
file for environment variables:touch .env
Add the following content to
.env
file:GCP_PROJECT_ID=your-gcp-project-id GCP_MODELS_LOCATION=your-gcp-models-location GOOGLE_APPLICATION_CREDENTIALS_JSON=your-gcp-credentials-json
-
-
Build and run the containers:
docker-compose up --build
-
Apply migrations and create a superuser:
docker-compose exec web python manage.py migrate docker-compose exec web python manage.py createsuperuser
-
Access the application:
Open your browser and go to
http://localhost:8000
. -
Run tests:
docker-compose exec web python manage.py test