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

Submillisecond control server #185

Merged
merged 11 commits into from
Mar 14, 2023

Conversation

tqwewe
Copy link
Member

@tqwewe tqwewe commented Jan 31, 2023

Implements the control server using submillisecond.

This requires building to wasm, and uses git dependencies for now until lunatic 0.13 is released.

# Lunatic Control Server
Lunatic Control Server is an HTTP server designed for managing Lunatic nodes.
It is built with Submillisecond and compiles to WebAssembly to run with Lunatic.
### Running the Server Locally
Before running the server locally, you need to build the Lunatic runtime by running the following command:
```bash
cargo build --release
```
Next, follow the steps below to build and run the control server:
1. Navigate to the `./crates/lunatic-control-submillisecond` directory.
2. Build the control server using the following command:
```bash
cargo build --target wasm32-wasi
```
3. Finally, run the control server using the Lunatic runtime by executing the following command:
```bash
../../target/release/lunatic ./target/wasm32-wasi/debug/lunatic-control-submillisecond.wasm
```
Please note that the command above assumes that you are still in the `./crates/lunatic-control-submillisecond directory.`
If you are in a different directory, you will need to adjust the relative paths accordingly.

@tqwewe tqwewe marked this pull request as ready for review February 2, 2023 04:32
@tqwewe tqwewe force-pushed the submillisecond-control-server branch from 3f8f87a to a3db0c5 Compare February 8, 2023 07:08
Copy link
Contributor

@withtypes withtypes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you resolve conflicts and add a README file with instructions. We can then merge this.

crates/lunatic-control-submillisecond/Cargo.toml Outdated Show resolved Hide resolved
@tqwewe tqwewe force-pushed the submillisecond-control-server branch from 68b6eea to ece640e Compare March 14, 2023 04:03
@tqwewe tqwewe force-pushed the submillisecond-control-server branch from 0baf3b3 to 31b7b5d Compare March 14, 2023 04:17
@withtypes withtypes merged commit 36d9a0c into lunatic-solutions:main Mar 14, 2023
@tqwewe tqwewe deleted the submillisecond-control-server branch March 14, 2023 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants