Next.js Integration

How to run NextJS with Zesty.io

Getting Started

Node and NPM need to be installed. From your command line.

npx create-next-app --example https://github.com/zesty-io/nextjs-starter

cd nextjs-starter

npm run dev

## open browser to http://localhost:3000/

Syncing Zesty.io Models to Next JS

From the command line at the root of the project run:

npm run sync

or

node lib/sync.js

This will create new files where needed, but will not overwrite existing files.

NextJS Zesty.io Resources

NextJS Starter open-source Github repository https://github.com/zesty-io/nextjs-starter

NextJS Demonstration on YouTube https://www.youtube.com/watch?v=h9WMdlQyFgU

Last updated