- The backend component of the application focuses on handling traffic incidents and route calculations.
- This is a Java Gradle project and is developed using intelliJ IDEA editor (https://www.jetbrains.com/help/idea/getting-started-with-gradle.html).
This controller manages traffic incidents.
GET /api/transit/incidents: Retrieves traffic incidents.
POST /createIncident: Creates a new incident.
DELETE /deleteIncident/{incidentId}: Deletes an incident by ID.
GET /api/incidents: Retrieves all incidents.
This controller handles route calculations.
GET /api/routes: Calculates the shortest path between two coordinates.
GET /api/routes2: Provides transition route recommendations between two coordinates.
Watch the application in action on YouTube: Application Demo
- Java
- Spring Framework
- Gradle
Note: Make sure you have completed the intelliJ - Environment Setup before proceeding.
First, you will need to clone and setup this gradle project to be able to build this gradle project.
To start cloning and Gradle Build, you will need to follow the following steps:
- Select checkout from version control on the welcome screen intelliJ.
- Choose Git and provide the URL for the Git Repository (https://github.com/ecocompass/backend_wayfinding/).
- Click clone and this will download the repo to local machine as well to be able to make local changes and be able to push the tested changes.
- Open the project now and let the editor download the dependencies and build the image without any errors. Fix any errors and test using Postman.
We need now to dockerize the project and push it to the registry like (DockerHub):
docker build -t your-dockerhub-username/your-project:latest
docker push your-dockerhub-username/your-project:latest
if you face login/authorization issues try using docker login
.
Contributions are welcome! Please follow the contribution guidelines. And contact us incase!
This project is licensed under the MIT License.