This was my final project of the General Assembly Software Engineering Immersive course (Week 12). 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. Offset My Flights Built With
- Python 3
- Django
- RESTful API from https://www.kiwi.com/en/
- React
- CSS
- HTML
- Bulma
Deployment
- The application is deployed on GitHub Pages and it can be found here: 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. 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 Challenges and future improvement
Author Tom Muxworthy