Skip to content

catman85/TermApp-Node-Typesript-Docker-Express

Repository files navigation

A web-based terminal app for showing covid-19 status

GitHub stars GitHub forks

💉 It's sick 😷 Featured in Awesome

Try it out 😎

curl covid.mhtsaras.duckdns.org

The visitor is geolocated and data is shown for his country.

Made with ❤️:

  • NodeJS forthebadge
  • TypeScript forthebadge
  • Docker forthebadge
  • ExpressJS forthebadge

Develop locally

  1. 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_KEY
npm ci
npm run start:dev

Develop with docker

docker-compose up

Execution sequence:

  1. docker-compose up

  2. Dockerfile

  3. npm ci --quiet && npm run build

  4. npm run start:dev

  5. nodemon (when it detects changes->)

  6. ts-node

  7. boot.ts

Docker in production

docker build -t "docker-app"  .
docker run -d -p 80:8080 --rm docker-app node build/boot.js

You 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

About

A web-based terminal app for showing covid-19 status

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published