A web framework for MoonBit.
See the codeA web framework for MoonBit.
async fn main {
let app = @mocket.App()
app.get("/", _ => "Hello, Mocket!")
app.listen(":80")
}
Mocket supports both js and native backends.
Set the backend of MoonBit to js in Visual Studio Code
Command: MoonBit: Select Backend -> js
moon run src/example --target js
Set the backend of MoonBit to native in Visual Studio Code
Command: MoonBit: Select Backend -> native
moon run src/example --target native
Then visit http://localhost:4000
Minimum Example: https://github.com/oboard/mocket_example
🙌快来吧!🙌
QQ 群号:949886784

MoonBit
74.1%
C
11.4%
Python
5.7%
JavaScript
3.0%
TypeScript
1.7%
Java
1.1%
A web framework for MoonBit.
See the codeA web framework for MoonBit.
async fn main {
let app = @mocket.App()
app.get("/", _ => "Hello, Mocket!")
app.listen(":80")
}
Mocket supports both js and native backends.
Set the backend of MoonBit to js in Visual Studio Code
Command: MoonBit: Select Backend -> js
moon run src/example --target js
Set the backend of MoonBit to native in Visual Studio Code
Command: MoonBit: Select Backend -> native
moon run src/example --target native
Then visit http://localhost:4000
Minimum Example: https://github.com/oboard/mocket_example
🙌快来吧!🙌
QQ 群号:949886784

MoonBit
74.1%
C
11.4%
Python
5.7%
JavaScript
3.0%
TypeScript
1.7%
Java
1.1%