Backend Rest API Service Powered by Java and Spring for the Online Tutoring Application
git clone git@github.com:Online-Tutoring-Application-Team-11/backend-rest-API-service.git
- Download Java version 17
- Download intellij IDEA
mvn clean install[This is a maven project so click on the green button to download dependencies]
- Replace the contents of the
src/main/application.propertiesfile with the passwords provided in the submission - Run the main function present in
src/main/java/onlinetutoring/com/teamelevenbackend/TeamElevenBackendApplication.java(click on the green button next to main to run the app)
The Application uses Postgres DB and is hosted on AWS
Credentials -
- host-name:
CONTACT-ADMIN - port:
CONTACT-ADMIN - username:
CONTACT-ADMIN - password:
CONTACT-ADMIN
The backend is deployed using railway
- production -
CONTACT-ADMIN - localhost -
http://localhost:8080
DO NOT PUSH TO PRODUCTION WITHOUT A PULL REQUEST
- You can use the
postman testing suitewith the app running locally
sequenceDiagram
participant React-FE
participant Java-Spring-API
participant AWS-SQL-DB
participant Caching-Layer
Java-Spring-API->>Caching-Layer: Replace cache every 10 minutes or bust cache if any update API call has been made
React-FE->>Java-Spring-API: Send Request
Java-Spring-API->>AWS-SQL-DB: Query Database
AWS-SQL-DB-->>Java-Spring-API: Return Data
Java-Spring-API-->>React-FE: Return Response
React-FE->>Caching-Layer: Send Request to Get Tutor Info
Caching-Layer-->>React-FE: Return Cached Data

