Skip to content

prisma-korea/prisma-server-component-example

Repository files navigation

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

  1. Setup PostgreSQL database.
  2. Set environment variables in .env file. See .env.sample for reference.
  3. Install dependencies.
    npm i
  4. Run database migration
    npx prisma migrate dev
  5. Start server.
    npm start
  6. 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.

About

Demonstrates how to use Prisma in React server components

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published