Skip to content

Latest commit

 

History

History

mbe

Micro Backends

Table of Contents


Getting Started

$ git clone https://github.com/Shyam-Chen/Micro-Fullstack
$ cd Micro-Fullstack

$ cd server
$ yarn install
$ yarn bootstrap

$ yarn serve

app-gateway is listening on port 3000.
mod-koa is listening on port 3001.
mod-express is listening on port 3002.
mod-nest is listening on port 3003.
mod-fastify is listening on port 3004.

$ http :3000
# app-gateway

$ http :3000 'Host: localhost:3001'
# mod-koa

$ http :3000 'Host: localhost:3002'
# mod-express

$ http :3000 'Host: localhost:3003'
# mod-nest

$ http :3000 'Host: localhost:3004'
# mod-fastify

Directory Structure

# core
app-gateway

# shared
app-assemblies

# modules
mod-koa
mod-express
mod-nest
mod-fastify

Application Testing

jest

$ yarn test

Previewing Locally

caddy

$ yarn build
$ caddy run -config ./app-gateway/Caddyfile
$ pm2 start ecosystem.config.js

Application Containerization

docker

$

Production Ready

knative

$