salaboy / fmtok8s-frontend

From Monolith to K8s :: API Gateway / User Interface

Home Page:http://salaboy.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

From Monolith to K8s :: API Gateway / FrontEnd

User facing component as it contains an API Gateway and the User Interface of the Conference Platform.

Build and Release

mvn package
docker build -t salaboy/fmtok8s-frontend:0.1.0
docker push salaboy/fmtok8s-frontend:0.1.0
cd charts/fmtok8s-frontend
helm package .

Copy tar to http://github.com/salaboy/helm and push

Using Dagger

go run dagger.go publish-image salaboy/fmtok8s-frontend:0.1.0
go run dagger.go helm-package

Running the front end only

Install all deps with yarn, from inside the frontend directory:

yarn install

Start the application:

yarn start

CloudEvents Accepted for Tickets Flow

Cloud Event to Join the Queue

curl -X POST http://localhost:8080/default/default -H "Content-Type: application/json" -H "ce-type: Queue.CustomerJoined"  -H "ce-id: 123"  -H "ce-specversion: 1.0" -H "ce-source: curl-command" -d '{"sessionId" : "123" }'

Cloud Event received for Customer to Exit the Queue from Queue Service

curl -X POST http://localhost:8080/default/default -H "Content-Type: application/json" -H "ce-type: Queue.CustomerExited"  -H "ce-id: 123"  -H "ce-specversion: 1.0" -H "ce-source: curl-command" -d '{"sessionId" : "123" }'

About

From Monolith to K8s :: API Gateway / User Interface

http://salaboy.com

License:Apache License 2.0


Languages

Language:JavaScript 52.9%Language:SCSS 26.3%Language:Java 17.0%Language:Go 2.2%Language:Shell 0.7%Language:Dockerfile 0.3%Language:Mustache 0.3%Language:HTML 0.2%