Uses tslint and prettier
Uses Winston for logging
Uses verror and http-error
Note -Uses tsoa for Anotating REST controllers and generating swagger. That introduces some complications, the Routes are generated and then added to the applications.
npm run build
npm run watch
npm run watch-debug
npm run dev
npm run route-gen
docker build -t ts-node .
docker run -d -p 4100:4100 ts-node:latest
docker run -d -p 4100:4100 hiteshjoshi1/ts-node:latest
If you have Kubernetes and minikube installed, just install Skaffold and do
skaffold dev
brew cask install minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-hyperkit && sudo install -o root -g wheel -m 4755 docker-machine-driver-hyperkit /usr/local/bin/
brew install kubernetes-cli
brew install skaffold
curl -LO https://storage.googleapis.com/container-structure-test/latest/container-structure-test-darwin-amd64 && chmod +x container-structure-test-darwin-amd64 && sudo mv container-structure-test-darwin-amd64 /usr/local/bin/container-structure-test
cd ts-node-starter
minikube start
Check Minikube status
minikube status <== to check the status of the minikube
Skaffold is an awesome tool from Google - https://github.com/GoogleContainerTools/skaffold
The minikube cluster will run three pods and a loadbalancer service.
Get the LoadBalancer url as
minikube service ts-node-service --url