/final-project

A flight emissions calculator for carbon offsetting using Kiwi.com API

Primary LanguagePython

final-project

Screenshot 2020-03-02 at 14 51 13

This was my final project of the General Assembly Software Engineering Immersive course (Week 12). Screenshot 2020-03-02 at 14 44 05 I worked independently to produce an app that calculated the amount of carbon emissions to be offset based on the user’s travel history. I used a Python Django API and Django REST Framework to serve my data from a Postgres database, whilst the front-end was built with React. I incorporated multiple relationships and CRUD functionality for two models, users and flights. Screenshot P4 Site 3 Offset My Flights Built With

Deployment

  • The application is deployed on GitHub Pages and it can be found here: Screenshot P4 Code 1 Getting Started
  • In GitHub, use the clone button to download the application source code. I used pipenv to create a virtual environment for python, if you require a virtual environment I recommend pipenv via $ brew install pipenv.

Make sure to install all package dependencies from package-lock files via $ npm install and $ pipenv install before starting. Screenshot 2020-03-02 at 14 51 45 Application Architecture

  • Begin by registering an account.
  • Login using the account details you provided.
  • Add a flight that you have taken or that you plan to take by entering the three-letter airport code.
  • Save the flight to your account.
  • Add more flights or view current total of carbon to be offset.
  • Offset flights by clicking on hyperlinked button beneath table Screenshot 2020-03-02 at 14 51 30 Challenges and future improvement

Author Tom Muxworthy