Express API server template for production
Production quality Express API server template.
npm i
: Install dependenciesnpm run dev
: Restart on code change (development)npm run dev:build
: Build on code change (development)npm run build
: Generate bundle (production)npm run start
: Execute generated bundle (production)docker build -t dilly97/mypod:v1.0-alpine .
docker push dilly97/mypod:v1.0-alpine
docker run -it -p 8080:8080 dilly97/mypod:v1.0-alpine
kubectl apply -f deployment.yaml
kubectl -n default rollout restart deployment mypod
kubectl delete -f deployment.yaml