Skip to content

Latest commit

 

History

History
 
 

example

This is a Next.js project bootstrapped with create-next-app.

Features

  • Edit snacks
  • Edit name, description, sdk-version
  • Save Snacks
  • Download Snacks (as zip)
  • Debounced updates
  • Web-preview
  • Preview on Expo Go client
  • Server-side & client-side rendering (using Next.js)
  • Web-workers

Getting Started

First, build the snack-sdk:

# in packages/snack-sdk
yarn build

And then run the development server:

# in packages/snack-sdk/example
yarn dev

Open http://localhost:3099 with your browser to see the snack-sdk Example app.

Note on failing HTTP requests due to CORS

Certain requests such as save are only allowed from trusted domains. These requests fail when run on the localhost domain.