-
Notifications
You must be signed in to change notification settings - Fork 9
feat: Implement basic Module Build Server #9
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
feat: Implement basic Module Build Server #9
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
| pub struct JavaScriptBaker {} | ||
|
|
||
| #[async_trait] | ||
| impl Bake for JavaScriptBaker { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧑🍳
rust/usuba/Dockerfile
Outdated
|
|
||
| WORKDIR /usuba | ||
|
|
||
| EXPOSE 8888 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8080 is used elsewhere
…mponents/service-worker feat: On-demand Isolated Modules SW polyfill
This change proposes a minimum viable implementation of the Build Server described in On-demand Isolated Components.
The implementation is written primarily in Rust, and currently supports building Modules of one language type: JavaScript. It depends on
@bytecodealliance/jco(an NPM package) to be available in its environment.Currently, the server persists built Modules to a temporary database that is deleted as the process stops and cleans up.
There has been an attempt to correctly document the REST API using an OpenAPI spec. When running the server, the API spec is available at http://localhost:8080/openapi.json. Additionally, Swagger UI (a GUI for exploring an OpenAPI spec) is available at http://localhost:8080/swagger-ui. Theoretically, this will allow us to automatically generate REST API clients for the build server in most languages.