Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add server support for event-driven architecture. #7

Open
4 tasks
iberdinsky-skilld opened this issue Mar 5, 2024 · 0 comments
Open
4 tasks

Add server support for event-driven architecture. #7

iberdinsky-skilld opened this issue Mar 5, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation go Server go issues yaml Yaml documentation.

Comments

@iberdinsky-skilld
Copy link
Contributor

iberdinsky-skilld commented Mar 5, 2024

Currently server provide endpoints for front application via Open Api https://www.openapis.org/
To review them run:
./bin/launchr web --swagger-ui and open http://localhost:8080/api/swagger-ui/

But for some front features we need to implement Async Api https://www.asyncapi.com/en

These features are:

  • Dynamic list of currently launched/finished/never started actions
  • Stdout/Stderr or action launched to display in visual web terminal
  • Probably actions list

Some POC added in this PR https://github.com/launchrctl/web/pull/4/files
Here I've added https://github.com/asyncapi/glee nodejs server to generate messages.
There are go modules which can be used here. Probably some else.

As result of this ticket we need:

  • Generate async api document from backend code or at least strict follow it.
  • Send/Receive message for launch action and return stdout/err. Action has id, time start?, process id. One action can be runned multiple times.
  • Send/receive message for dynamic runned/finished/never started actions
  • Optionally send/receive messages for actions list and action schema.

Also we can research here combination of https://xtermjs.org/ on front and https://github.com/zephinzer/cloudshell on back.

@iberdinsky-skilld iberdinsky-skilld added documentation Improvements or additions to documentation go Server go issues yaml Yaml documentation. labels Mar 5, 2024
@iberdinsky-skilld iberdinsky-skilld added this to the MVP milestone Mar 7, 2024
@iberdinsky-skilld iberdinsky-skilld removed this from the MVP milestone Mar 19, 2024
@iberdinsky-skilld iberdinsky-skilld self-assigned this Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation go Server go issues yaml Yaml documentation.
Projects
None yet
Development

No branches or pull requests

1 participant