Skip to content

A minimalistic starter for using Zenstack with next.js, without authentication integration

License

Notifications You must be signed in to change notification settings

zenstackhq/nextjs-barebone-starter

 
 

Repository files navigation

This is a starter project for using ZenStack with Next.js.

It's extended from Prisma's Next.js Starter.

Getting Started

First create a project from this starter:

npx create-next-app --use-npm -e https://github.com/zenstackhq/nextjs-barebone-starter [project-name]

cd [project-name]

Run ZenStack generator:

npm run generate

You'll also need to bootstrap your database and create the initial migration (a local sqlite db by default):

npm run db:migrate -- -n init

Finally it's time to run your app locally:

npm run dev

Code Structure

Data Model

The data model is located at /zenstack/schema.zmodel.

Mounted Data Services

The generated RESTful data access services are mounted at: /pages/api/zenstack/[...path].ts.

Learn More

To learn more about ZenStack, visit ZenStack Home.

About

A minimalistic starter for using Zenstack with next.js, without authentication integration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • TypeScript 94.8%
  • CSS 3.5%
  • JavaScript 1.2%
  • Shell 0.5%