Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kunmyonchoi/mypod
Express API server template for production
https://github.com/kunmyonchoi/mypod
Last synced: 9 days ago
JSON representation
Express API server template for production
- Host: GitHub
- URL: https://github.com/kunmyonchoi/mypod
- Owner: KunmyonChoi
- Created: 2020-07-30T13:55:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T12:51:59.000Z (almost 2 years ago)
- Last Synced: 2024-11-01T02:22:00.643Z (about 2 months ago)
- Language: JavaScript
- Size: 1.97 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MyPod
Production quality Express API server template.## Features
- Automatic build on code change in development mode
- Automatic generate request-id
- Automatic HTTP request log with morgan
- Apply babel preset to handle latest language spec(es6)
- Build webpack bundle with code optimization
- Create small size docker container with alpine core## Package manager
- `npm i` : Install dependencies
- `npm 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
- `docker build -t dilly97/mypod:v1.0-alpine .`
- Push
- `docker push dilly97/mypod:v1.0-alpine`
- Execute
- `docker run -it -p 8080:8080 dilly97/mypod:v1.0-alpine`## Kubernetes
- Deploy
- `kubectl apply -f deployment.yaml`
- Restart
- `kubectl -n default rollout restart deployment mypod`
- Delete
- `kubectl delete -f deployment.yaml`## Trouble shooting
- Cann't pull container image from kubernetes while deploy service
- check if docker hub repo is set to private
- How to pull private docker container registry
- https://kubernetes.io/ko/docs/tasks/configure-pod-container/pull-image-private-registry/