Skip to content

Files

Latest commit

 

History

History
78 lines (52 loc) · 1.25 KB

README.md

File metadata and controls

78 lines (52 loc) · 1.25 KB

Bartalysis

Bartalysis is a web application that uses the Bay Area Rapid Transit (BART) API to provide route planning and service information for commuters.

View Database Diagram

View System Diagram

Tech Stack

  • React
  • TypeScript
  • TailwindCSS
  • Python
  • Django
  • SQLite

Building the Frontend

First clone the project

git clone <githuburl>

Next change directory into the frontend directory

cd bartalysis
cd frontend

Then install dependencies and run server:

npm install
npm run dev

Go to http://localhost:5173/ to access the webpage

Building the Backend

Update and Install Packages

sudo apt-get update
pip install -r requirements.txt

Create Protoc Compiler

Install proto-buf.

sudo apt-get install -y protobuf-compiler

Run the proto.py file.

python proto.py

Ensure the gtfs_realtime_pb2.py file is located in the gtfs-rt directory. This is required to pull data from GTFS-RT.

Build the Database

Create the django user database.

python manage.py migrate

Create the BART database.

python manage.py migrate --database=bart