A sample app that showcases a serverless function hooks developed in Rust.
git clone https://github.com/junobuild/examples
cd rust/hooks- Install dependencies:
npm ci- Start Juno local emulator:
Important
Requires the Juno CLI to be available npm i -g @junobuild/cli
juno emulator start- Create a Satellite for local dev:
- Visit http://localhost:5866 and follow the instructions.
- Update
juno.config.tswith your Satellite ID.
- Create required collections:
demoin Datastore: http://localhost:5866/datastoreimagesin Storage: http://localhost:5866/storage
- Start the frontend dev server (in a separate terminal):
npm run dev- Build the serverless functions (in a separate terminal):
juno functions buildThe emulator will automatically upgrade your Satellite and live reload the changes.