A sample app that showcases a simple serverless function assertion developed in Rust.
When testing this application, you should not be able to insert any notes (using the frontend) that contain the word "hello".
git clone https://github.com/junobuild/examples
cd rust/assertions- 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:
notesin 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.