This is a sample project for demonstrating how to use ZenStack to create a SaaS application using Next.js
The deployed version can be found at https://zenstack-nextjs-saas-app-sigma.vercel.app/
- install dependencies
npm install
- Run build:
npm run build
- Set a postgres connection string to DATABASE_URL in .env:
DATABASE_URL="postgres://postgres:[YOUR-PASSWORD]@[YOUR-URL]/postgres"
- Sync schema with database
npm run db:push
- Finally it's time to run your app locally:
npm run dev
To learn more about ZenStack, take a look at the following resources: