Skip to content

Latest commit

 

History

History

README.md

Hooks

A sample app that showcases a serverless function hooks developed in TypeScript.

Getting started

git clone https://github.com/junobuild/examples
cd typescript/hooks

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.