COVID-19 Live Updates of Tencent Health is developed to track the live updates of COVID-19, including the global pandemic trends, domestic live updates, and overseas live updates.
TH_COVID19_International
|-- src # Source code
| |-- db # Database import script
| |-- servers # Source code of Background
| |-- web # Souce code of Web
|
|-- images # images of Display
Path:
src/db/
Method:
Import sql script under src/db/ in mysql
Path:
src/servers
Method:
npm install
- Modify the configuration file under
/config/formal
, referring to the sample of/config/test
- Debug and execute
npm run dev
locally, will read the configuration file ofconfig/test
- Modify
start
command ofpackage.json
and configureLOG_PATH
- Execute
npm run start
to run the program, will read the configuration files ofLOG_PATH
andconfig/formal
Path:
src/web
Method:
Build for pre environment
npm run build:pre
Build for production environment
npm run build
npm install
npm run dev