Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/restuwahyu13/express-microservices
Express microservices tecnical test from YC W22.
https://github.com/restuwahyu13/express-microservices
docker express javascript kubernetes-service microservice microservices nodejs typescript
Last synced: 9 days ago
JSON representation
Express microservices tecnical test from YC W22.
- Host: GitHub
- URL: https://github.com/restuwahyu13/express-microservices
- Owner: restuwahyu13
- Created: 2022-07-21T07:09:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-25T02:55:57.000Z (over 2 years ago)
- Last Synced: 2023-03-05T22:54:21.306Z (over 1 year ago)
- Topics: docker, express, javascript, kubernetes-service, microservice, microservices, nodejs, typescript
- Language: TypeScript
- Homepage:
- Size: 562 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Express Microservices
Example simple setup miroservices nodejs, using express framework + typescript + mongodb, if you want to deploy this app into your docker hub registry with your account, you must log in before push image into docker registry, typing in your terminal like this `docker login` and put your username and password, after login success, you must build this app into docker image, after build image container success, you can push this image into docker hub registry with your account, if you need free cloud database check here [Clever Cloud](https://www.clever-cloud.com).
## App Lifecycle Command
- **Single Install Dependency App Roles, Users Or Shared Libs**
```sh
$ npm run install:roles | npm run install:users | npm run install:shared
```- **Single Build App Roles, Users Or Shared Libs**
```sh
$ npm run build:roles | npm run build:users | npm run build:shared
```- **Single Run App Roles Or Users**
```sh
$ npm run dev:roles | npm run dev:users
```- **Multiple Install Dependency App**
```sh
$ npm run install
```- **Multiple Build App**
```sh
$ npm run build
```- **Multiple Run App**
```sh
$ npm run dev
```## Docker Lifecycle Command
- **Compose Up Container**
```sh
$ make dc-up
```- **Compose Down Container**
```sh
$ make dc-down
```- **Build Docker Image**
```sh
$ make dk-build
```- **Deploy Docker Image**
```sh
$ make dk-deploy
```## Kubernetes Lifecycle Command
- **Create Pod And Service**
```sh
$ make kb-create
```- **Apply Ingress**
```sh
$ make kb-apply
```- **Remove Pod And Service**
```sh
$ make dk-remove
```