Skip to content

Latest commit

 

History

History

README.md

JSON

An example that showcases how to generate and upload JSON files to the Storage in Serverless Functions on Juno.

What to expect

When testing this demo, each time you add a note through the frontend, a serverless function should be triggered to deduplicate it in the storage as JSON data and update a list of all notes, which is also stored as JSON.

Getting started

git clone https://github.com/junobuild/examples
cd rust/json

How to Run

  1. Install dependencies:
npm ci
  1. Start Juno local emulator:

Important

Requires the Juno CLI to be available npm i -g @junobuild/cli

juno emulator start
  1. Create a Satellite for local dev:
  1. Create required collections:
  1. Start the frontend dev server (in a separate terminal):
npm run dev
  1. Build the serverless functions (in a separate terminal):
juno functions build

The emulator will automatically upgrade your Satellite and live reload the changes.