- H2 - Java SQL database
Alternatively you can use the Spring Boot Maven plugin like so:
$ git clone https://github.com/Lamista/covid-19.git
$ cd covid-19/app
$ mvn spring-boot:run
The code can also be built into a jar and then executed/run. Once the jar is built, run the jar by double clicking on it or by using the command
$ git clone https://github.com/Lamista/covid-19.git
$ cd covid-19/app
$ mvn package -DskipTests
$ java -jar target/app.jar --spring.profiles.active=test
To shutdown the jar, follow the below mentioned steps on a Windows machine.
- In command prompt execute the jcmd command to print a list of all running Java processes
Taskkill /PID PROCESS_ID_OF_RUNNING_APP /F
execute this command by replacing the PROCESS_ID_OF_RUNNING_APP with the actual process id of the running jar found out from executing the previous command
$ git clone https://github.com/Lamista/covid-19.git
$ cd covid-19/app
$ docker build -t app .
$ docker run -dp 8080:8080 app
http://localhost:8080/swagger-ui/
- GET list of country name - "/api/data/countries", request URL http://localhost:8080/api/data/countries
- GET lists of weeks while collecting data, number of cases and deaths of one country - "/api/data/{country}", request URL for Russia http://localhost:8080/api/data/Russia
- GET lists of weeks while collecting data, number of cases and deaths of all countries - "/api/data/all-countries", request URL http://localhost:8080/api/data/all-countries
- GET all data - "/api/data/all", request URL http://localhost:8080/api/data/all
Endpoint: https://opendata.ecdc.europa.eu/covid19/nationalcasedeath/json/
More information here: https://www.ecdc.europa.eu/en/publications-data/data-national-14-day-notification-rate-covid-19
©LauraStasiule