Skip to content

Lamista/covid-19

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Covid-19 statistics

Application screenshots

  • All countries Main Page - statistics of all countries
  • One country Statistics of one country
  • Information on hover Information on point hover

Technology stack & other Open-source libraries

Data

  • H2 - Java SQL database

Frontend

Backend

Others

Running application

Running the application with Maven

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

Running the application with Executable JAR

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

Accessing Data in H2 Database

http://localhost:8080/console

  • JDBC URL: jdbc:h2:mem:app
  • User Name: sa
  • Password:
    H2-login

Running the application via docker container

$ git clone https://github.com/Lamista/covid-19.git
$ cd covid-19/app
$ docker build -t app .
$ docker run -dp 8080:8080 app

Swagger

http://localhost:8080/swagger-ui/

Data source

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

Copyright

©LauraStasiule

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published