This repository stores the project created for the University of Bristol CSSxBoeing Hackathon 2022.
UPDATE: We are very happy to share that this project received an honourary mention in the event!
The CSSxBoeing Hackathon is a 24-hour hackathon that is open to all courses and years of students in the University of Bristol.
The theme for 2022 is Sustainable Cities and Communities 🏢🏠.
Called Rogue One, the team consists of 6 students from the University of Bristol:
- Mitch Lui (Computer Science, 2nd Year)
- Salman Khan (Computer Science, 2nd Year)
- Artur Varosyan (Computer Science, 2nd Year)
- Matthew Swann (Computer Science, 2nd Year)
- Otis Lee (Electrical and Electronic Engineering, 2nd Year)
- Samuel Cheung (Electrical and Electronic Engineering, 2nd Year)
DEMO:
We created a Google-Map like application that allows users to search for a location and then view the weather and traffic information for that location, but specically for methods that promotes sustainable shared mobility and transport e.g. e-scooters.
The data is provided by different 3rd party APIs (credited below), and the navigation algorithm is written from scratch that uses a clustering method (we decided to name it G-Cluster).
3rd Party APIs include:
- Voi
- Tier
- Santander
- Electric Vehicles
- Transport API
Application: Docker Compose
Frontend: React + MapBox API
Backend: FastAPI
Before reading instructions for development and deployment, a .env file under server/routers/internal
is required.
A sample .env file can be found in the directory.
Install:
- frontend dependencies by running
npm install
infrontend
directory - backend dependencies by running
pip install -r requirements.txt
inserver
directory
Install:
- Docker (and Compose)
Run this shell script:
./make_compose.sh
This creates a compose network with 2 containers:
frontend
with assigned port 8080backend
with assigned port 5001
A demo of the page can be accessed through this heroku app.