Skip to content

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

License

Notifications You must be signed in to change notification settings

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 snf-878293.vm.okeanos.grnet.gr

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

Made with ❤️:

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

Develop locally

npm ci
npm run start:dev

Develop with docker

The following command triggers the Dockerfile in the current dir and only reaches the dev stage not the prod
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