NextJS PostgreSQL Prisma Example
This example demonstrates how to use NextJS, PostgreSQL and Prisma in WunderGraph.
Getting started
Scaffold the project:
1
Then from the project root, install the dependencies and start the development server:
1
2
3
The Prisma Schema
We use Prisma to migrate the database. Find below the schema we're using:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Seeding the Database
We're using WunderGraph to seed the database:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Learn more
Deploy to WunderGraph Cloud
The easiest way to deploy your WunderGraph app is to use WunderGraph Cloud. Enable the Vercel integration to deploy the Next.js frontend to Vercel.