Skip to content

michalarent/examples-next-prisma-todomvc

 
 

Repository files navigation

TodoMVC

Setup

yarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-todomvc trpc-todo
cd trpc-todo
yarn
yarn dev

Useful commands

yarn dx # runs prisma studio + next

ℹ️ This example contains both Postgres and SQLite

  • This project contains both Postgres & SQLite in able for us to easily showcase it in both CodeSandbox and deploy on Vercel.
  • This is not a recommended approach. If you want to fork this project as a starter, do the following:
    • rm -rf ./prisma/_sqlite
    • Update package.json:
      • remove all references of sqlite
      • replace commands using *:sqlite with *:postgres

Created by @alexdotjs.

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.2%
  • JavaScript 1.8%