Backend for Dallas by Metro using Spring Boot. Database implemented in Postgres. We expose the backend through a RESTful API. Hosted on AWS
Follow the steps below to clone and run this project on your local machine:
Clone the Repository: Clone the repository to your local machine.
Install Dependencies: Make sure you have a recent version of the required tools installed:
Set environment variables
SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:5432/dallasbymetro;SPRING_DATASOURCE_USERNAME=root;SPRING_DATASOURCE_PASSWORD=password;API_KEY=password;PROFILE=dev
Set up the Local Development Database:
resources
folder in the project directory.sudo docker compose up
sudo docker compose down -v
-v
flag is important as it removes the volumes associated with
the database, ensuring a clean state for future test runs.Generate example Data:
scripts
folder
within the resources
directory.This project provides two types of APIs:
Both APIs adhere to the OpenAPI standard. We generate our API documentation using Swagger tools to ensure clear and interactive representation. You can view our interactive API documentation here.
We host our application on AWS. Detailed information about our hosting setup can be found in our wiki here.
This project was initially developed to assist residents of Dallas in navigating the DART train system. However, the code base has been structured in a way that should make it easily extendable to other transit systems.
Whether you're interested in adapting this project for another city or contributing to its current form, we welcome your involvement! Feel free to fork the repository to create your own version, or reach out to us directly if you'd like to contribute.