- The apps are created with Django-admin version 5.0.2, with python version 3.10
- The database is Postgis
- Get Docker running
- Install docker cli from (https://www.docker.com/)
- Inside project folder run
docker-compose up
At this point the project should be running at (http://localhost:8000)
-
Configure containers environment
- Run
docker-compose up -d --build
(this command will mount the container image) - Run
docker-compose exec web python manage.py migrate
- Run
docker-compose exec web python manage.py createsuperuser --username=admin --email=admin@email.com.br
- Run
-
Running application
- Run
docker-compose up
- Run
-
First of all, put the container image up with
docker-compose up -d
- Run tests with:
docker-compose exec web python manage.py test
(The flag -m is needed for fixture modularization)
- Run tests with:
To install locally dependencies run
poetry install