React Server Components + Prisma + React Router
This is a fork of the official React Server Components Demo with Prisma. You can learn more about how Prisma and React Server Components fit together in this video.
Usage
- Setup PostgreSQL database.
- Set environment variables in
.env
file. See.env.sample
for reference. - Install dependencies.
npm i
- Run database migration
npx prisma migrate dev
- Start server.
npm start
- Open http://localhost:4000 in browser.
Note
Both React server components and react-prisma
are in experimental stage.
Not recommended for production usage.
License
This demo is MIT licensed.
The GitHub Link:
https://github.com/prisma-korea/prisma-server-component-example