Fractal networks interview
Ahmad Abbati Bako
Django and Docker Evaluation
-
Docker Containerization
Run the following command to deploy the project using Docker:
docker-compose -f docker-compose.yml up -d --build
-
Database Migration
Run the following commands to create and run migration on the database:
docker-compose exec web python manage.py makemigrations docker-compose exec web python manage.py migrate
-
Testing
Run the following command to run tests:
docker-compose exec web python manage.py test
- .env file for Django environment variables
- .env.db file for postgres environment variables
The project uses Postgres database with PostGIS extension enabled for geospatial data support.
Python (Django framework)
Docker