-
Clone the repository:
git clone https://github.com/yourusername/airline-management.git cd airline-management
-
Set up the environment variables:
- Copy the example environment file and update it with your configuration.
cp .env.example .env
-
Apply the migrations:
docker compose run --rm web python manage.py migrate
-
Load initial data (optional):
docker compose run --rm web python manage.py loaddata airplanes_dump.json #insert dummy airplane data docker compose run --rm web python manage.py loaddata flights_dump.json #insert dummy flight data docker compose run --rm web python manage.py loaddata reservations_dump.json #insert dummy reservation data
-
Run the development server:
docker compose up --build
-
Import Postman collection to test the API
- Access the application at
http://127.0.0.1:8000/
.