- Install NodeJS
- Install Prettier ESLint VSCode Extension
- Locate the repository in terminal/bash
- Install dependencies -
npm install
in the repository directory - Run
node index.js
in the repository directory
Rename .env.sample
file to .env
.
DISCORD_AUTH_TOKEN
DISCORD_CHANNEL_ID
DEFAULT_COUNTRY_CODE
- Set Country Code (find country code incountries.json
, e.g.HK
)
- Open
countries.json
- Find country URL at https://www.worldometers.info/coronavirus/
- Add key value pair object to
countries.json
array
Example:
{
"country": "CA",
"url": "https://www.worldometers.info/coronavirus/country/canada/"
}
- Add production environment variables
- Run
npm run build
in the repository
- Irvin Ives Lau - lauirvin
- https://www.irviniveslau.com