The website designed for the real-time statistics of Covid-19 and facilitates the diagnosis and treatment process for doctors.
- Create the
coviddatabase in the DBMS.
create database covid-
Run the schema file ddl.sql in the database just created.
-
Follow the instructions in data readme to get the data in
csvformat and import them to the database.
-
You must at least have
JDK 11installed on your computer. -
Make sure that the environment variable
JAVA_HOMEis configured properly. -
In the application.yaml you may configure the
username,passwordaccording to your database and theserver-porthowever you like. -
In the CorsConfig.java you may configure the
registry.allowedOrigins()according to the frontend server port you chose. -
In the
backenddirectory run Maven command to get the runnablejarfile.
./mvnw clean compile package- Enter the
targetdirectory you will found thebackend-0.0.1-SNAPSHOT.jarhas just been generated. Run it and the backend server is booted up now.
java -jar backend-0.0.1-SNAPSHOT.jar- You must have the JavaScript runtime
Node.json you computer. If you are on Windows, we recommend you to use Scoop to install it.
scoop install nodejs- In the
frontenddirectory, run the following command to import the dependency for the server.
npm install- Now, run the following command to boot up the frontend server.
npm run serve