Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Airport Tracker Project

This project is a Django-based web application that allows users to track flights and gather information about airports. The application fetches data from the Aerodatabox API to provide detailed flight and airport information.


Features

  • Search for flights using their flight ID.
  • View detailed flight information, including aircraft details and images.
  • Get information about airports, including their ICAO code.

Prerequisites

To run this project, ensure you have the following installed:

  1. Python 3.8 or higher
  2. pip (Python package installer)
  3. Git

Installation Steps

Step 1: Clone the Repository

git clone https://github.com/Canerakcasu/AIRPORTTRACKER.git
cd AIRPORTTRACKER

Step 2: Set Up a Virtual Environment

python -m venv .venv
source .venv/bin/activate  # For macOS/Linux
# On Windows:
# .venv\Scripts\activate

Step 3: Install Dependencies

pip install -r requirements.txt

Step 4: Apply Migrations

python manage.py migrate

Step 5: Run the Development Server

python manage.py runserver

Step 6: Access the Application

Open your browser and go to:

http://127.0.0.1:8000/

API Key Setup

This project uses the Aerodatabox API to fetch flight and airport data. Ensure you have a valid API key.

  1. Replace the API key in views.py with your own:
    headers = {'x-magicapi-key': 'YOUR_API_KEY'}
  2. Save the file.

Collaboration Workflow

If you're working on this project with friends:

  1. Clone the repository (as shown above).
  2. Make your changes locally.
  3. Add and commit your changes:
    git add .
    git commit -m "Your commit message"
  4. Push your changes:
    git push origin main
  5. If there are conflicts, resolve them locally and push again.

Project Structure

AIRPORTTRACKER/
├── flights/
│   ├── views.py  # Contains the logic for handling requests
│   ├── urls.py   # URL routing
│   ├── templates/
│   │   ├── index.html
│   │   ├── search_results.html
├── static/       # Contains static files like CSS and images
├── manage.py     # Django management script

Troubleshooting

  • If you encounter "ModuleNotFoundError", ensure all dependencies are installed using:

    pip install -r requirements.txt
  • If migrations fail, ensure your database setup is correct and retry:

    python manage.py migrate

Contributors

  • Caner Akçasu (SD1)
  • Kaan Yazicioglu (SD4)

License

This project is open-source and available under the MIT License.

About

Basic Airport Tracker made with Django

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages