curl covid.mhtsaras.duckdns.org
- modify the .env file and add your https://api-ninjas.com/api/covid19 api key
nano .env
SERVER_PORT=8080
HOST_PORT=1234
NINJA_API_KEY=YOUR_KEYnpm ci
npm run start:devdocker-compose up-
docker-compose up
-
Dockerfile
-
npm ci --quiet && npm run build
-
npm run start:dev
-
nodemon (when it detects changes->)
-
ts-node
-
boot.ts
docker build -t "docker-app" .
docker run -d -p 80:8080 --rm docker-app node build/boot.jsYou can also use the server-compose.yml file to deploy this app in a self hosted server
# the server-compose.yml file already has the network settings ready to go
docker compose -f server-compose.yml up -d
