Skip to content

AidenHe2000/Covid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Covid

The website designed for the real-time statistics of Covid-19 and facilitates the diagnosis and treatment process for doctors.


Installation

Database (PostgreSQL)

  1. Create the covid database in the DBMS.
    create database covid
  1. Run the schema file ddl.sql in the database just created.

  2. Follow the instructions in data readme to get the data in csv format and import them to the database.

Backend Server (Spring Boot)

  1. You must at least have JDK 11 installed on your computer.

  2. Make sure that the environment variable JAVA_HOME is configured properly.

  3. In the application.yaml you may configure the username, password according to your database and the server-port however you like.

  4. In the CorsConfig.java you may configure the registry.allowedOrigins() according to the frontend server port you chose.

  5. In the backend directory run Maven command to get the runnable jar file.

    ./mvnw clean compile package
  1. Enter the target directory you will found the backend-0.0.1-SNAPSHOT.jar has just been generated. Run it and the backend server is booted up now.
    java -jar backend-0.0.1-SNAPSHOT.jar

Frontend Server (Node.js)

  1. You must have the JavaScript runtime Node.js on you computer. If you are on Windows, we recommend you to use Scoop to install it.
    scoop install nodejs
  1. In the frontend directory, run the following command to import the dependency for the server.
    npm install
  1. Now, run the following command to boot up the frontend server.
    npm run serve

About

The website designed for the real-time statistics of Covid-19 and facilitates diagnosis and treatment for doctors.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors