Template for web app using MoonBit and Rabbita.
-
Clone this repository.
-
Add the latest Rabbita dependency.
In the project directory:
moon add moonbit-community/rabbita
-
Start the dev server.
In the project directory:
npm i npm run dev
You can also use Bun instead of npm:
bun i bun run dev
Use the following steps to debug MoonBit code in VSCode:
-
Open the JavaScript Debug Terminal:
Press
Shift + Command + Pon Mac orCtrl + Shift + Pon Windows/Linux to open the command palette. Search forDebug: JavaScript Debug Terminaland run it. -
Run the
npm run dev(orbun run dev) command in the JavaScript Debug Terminal. -
Set breakpoints in the MoonBit code.
-
Open the browser and visit the link displayed in the terminal. The breakpoints will be triggered when the code is executed.
npm run build
or using bun:
bun run build
The release build will be generated in the dist directory.