This example shows how to implement a fullstack app in TypeScript with Next.js using React, Apollo Client (frontend), Nexus Schema and Prisma Client (backend).
Run the following command to create tables in your database file:
npx prisma migrate dev --name init
Now, seed the database with the sample data in prisma/seed.ts
by running the following command:
npx prisma db seed --preview-feature
npm run dev
The app is now running, navigate to http://localhost:3000/
in your browser to explore its UI.
If you want production buld - build it with npm run build
and start with npm start