Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/salaboy/fmtok8s-frontend
From Monolith to K8s :: API Gateway / User Interface
https://github.com/salaboy/fmtok8s-frontend
demo java kubernetes microservices orchestration tutorial workflow workshop zeebe
Last synced: 9 days ago
JSON representation
From Monolith to K8s :: API Gateway / User Interface
- Host: GitHub
- URL: https://github.com/salaboy/fmtok8s-frontend
- Owner: salaboy
- License: apache-2.0
- Created: 2020-02-24T17:11:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-09T08:35:22.000Z (over 1 year ago)
- Last Synced: 2024-05-02T01:35:34.940Z (7 months ago)
- Topics: demo, java, kubernetes, microservices, orchestration, tutorial, workflow, workshop, zeebe
- Language: JavaScript
- Homepage: http://salaboy.com
- Size: 31.3 MB
- Stars: 6
- Watchers: 5
- Forks: 3
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://dagger.io)
```
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" }'
```