Skip to content

DeotaleChinmay2001/aerothon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Vikaass-08vikaass_08
and
vikaass_08
Jun 11, 2023
cf787d0 · Jun 11, 2023

History

31 Commits
Jun 11, 2023
Jun 11, 2023
May 12, 2023
May 13, 2023

Repository files navigation

AIRBUS AEROTHON 5.0 🛫
airplane pic

Table of Contents

Problem Statement

Aircraft Sustainability Platform: Develop a platform or solution that connects aircraft manufacturers, airlines, and recycling facilities to facilitate the repurposing and recycling of end-of-life aircraft components.

Proposed Solution

We have developed a platform which uses Reactjs for Frontend and Django for backend.

  • Aircraft Manufacturers
  • Airline
  • Recycling facilities.

We have also developed a dashboard which shows Recycled parts Carbon Footprint, Water Usage- Recycled Parts, Landfill Waste- Recycled Parts and Remanufacturing Potential %

On login the Airlines, and Manufacturers can see a table with all of their Part Name, Material, Remanufacturing Potential and have an option to send that Part for Recycle.

Technologies used

  • Frontend: React
  • Backend: Django
  • Database: Sqlite

About The Application

Summary of each API endpoint:

  1. LoginAPIView:
  • Accepts a POST request with company role, company name, and password as input
  • Queries the UserDetails model to check if the given credentials are valid
  • If the credentials are valid, generates a JWT token and returns it in the response
  1. RecyclerDataView:
  • Accepts a GET request with a valid JWT token in the headers
  • Verifies the token and checks if the user is a Recycler
  • If the user is a Recycler, returns the serialized data of AircraftPartData objects that have status 'Recycling'
  • Accepts a POST request with a valid JWT token in the headers and part_id, and status_type in the request body
  • Verifies the token and checks if the user is a Recycler
  • If the user is a Recycler, updates the status of the AircraftPartData object with the given part_id to the given status_type and returns the serialized data of AircraftPartData objects that have status 'Recycling'
  1. PartDataView:
  • Accepts a POST request with a valid JWT token in the headers and part_id and status_type in the request body
  • Verifies the token and checks if the user is either an Airline or a Manufacturer
  • If the user is a Manufacturer, returns the serialized data of AircraftPartData objects that have status 'InUse' and belong to the same manufacturer as the user
  • If the user is an Airline, returns the serialized data of AircraftPartData objects that have status 'InUse'
  • Updates the status of the AircraftPartData object with the given part_id to the given status_type and returns the serialized data of AircraftPartData objects that have status 'InUse'

Usage

Install project dependencies:

  • Open a terminal window and navigate to the project directory. Run the command "npm install" to install the necessary Node.js packages, and "pip install -r requirements.txt" to install the necessary Python packages.

  • Set up the Django backend: Navigate to the "backend" directory in your project and run the command "python manage.py migrate" to create the necessary database tables. Then, run the command "python manage.py runserver" to start the Django development server.

  • Set up the React frontend: Navigate to the "frontend" directory in your project and run the command "npm start" to start the React development server.

  • Access the project in a web browser: Open a web browser and go to the URL "http://localhost:3000" to view the React frontend. You can interact with the frontend to make requests to the Django backend.

Contributors

Team Aero-Alpha

Vikas
Vikas Pathak

Mrudula
Mrudula More

Chinmay
Chinmay Deotale

Abhishek
Abhishek Kumar Tamoli