Repository navigation
Expand file tree
/
Copy pathReadme
More file actions
67 lines (52 loc) · 1.35 KB
/
Copy pathReadme
File metadata and controls
67 lines (52 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Airline Booking System
A Django-based web application for managing flights, bookings, and customers for a private aircraft charter service.
## Overview
This application allows management of a fleet of private jets and provides functionality for customers to book flights between various destinations. The system tracks aircraft details, airport information, routes, flight schedules, and customer data.
## Technologies
- Python
- Django
- HTML/CSS
- Bootstrap
- JavaScript
- SQLite
## Installation
1. Create and activate a virtual environment
```
python -m venv venv
Windows: .venv\Scripts\activate
```
2. Install dependencies
```
N/A
```
3. Make migrations
```
python manage.py makemigrations
```
4. Run migrations
```
python manage.py migrate
```
5. initialise data - This creates flight information to store in the database
```
python manage.py init_data
```
6. Run the development server
```
python manage.py runserver
```
## Project Structure
The project is organized into the following main components:
- Models: Defines the database schema for flights, aircraft, customers, etc.
- Views: Handles HTTP requests and responses
- Templates: Renders HTML pages for the user interface
- URLs: Maps URLs to views
## Docker
1. Build
```
docker build -t ass2 .
```
2.Run
```
docker run -p 8000:8000 ass2
```