This is a full-stack web application built with React and Java.
The backend uses Spring Boot along with the in-memory database H2.
Steps to run the application
- (Assuming the requirements for Spring Boot are installed), either open the
backend
folder in IntelliJ/Eclipse and run the fileWorldBankViewApplication.java
or run the commandmvn package
from the root of the project - The application will run on port
9090
- The
H2
UI will be available at the route/h2-ui
The following routes are exposed :
Method | Route | Description |
---|---|---|
GET |
/view |
Return all views |
GET |
/view/{id} |
Return the view with id id if it exists |
PUT |
/view/{id} |
Update the view with id if it exists |
POST |
/view |
Add a new view to the table |
DELETE |
/view/{id} |
Delete the view with id id if it exists |
Steps to run the application
- Go into the
frontend
directory and runnpm install
- Once the dependencies are installed, run
npm start
to start the development server on port3000
The functionality available at the frontend are:
- Show all the countries and indicators; store the values in localStorage
- Query the backend and show, delete and modify the views
- Query data based on the country, indicator, date-range and create a new view (plotting is not performed)