A sample app that showcases how to implement HTTPS outcalls on Juno with serverless functions written in Rust.
git clone https://github.com/junobuild/examples
cd rust/https-outcalls
npm ci- 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:
dogsin Datastore: http://localhost:5866/datastore
- 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.