Skip to content

zrrrzzt/gun-next-example

Repository files navigation

Build Status js-standard-style

gun-next-example

Example app with GUN and Next.js

See it live gun-next.example.allthethings.win

Setup

Clone the repo and install dependencies

$ npm install

Start

Start the dev server

$ npm run dev

Visit localhost:3000 to see it.

Click on the link on the bottom of the page to visit the random generated area for sync of a number.

Open the same url in different browsers and on different machines to see the sync in action.

Export

To export the app to a static server

$ npm run export

Deploy the out folder wherever you like

Vercel

If you use vercel it's even easier to deploy the app

Update vercel.json

$ npm run deploy

License

MIT