Skip to content

BlackBerry009/example-todo-list-t3-react-app

Repository files navigation

use Create t3 app to make a TODO list demo.

TODO LIST

Quick Start

here recommend a package manager library: ni

  1. first, make an env file to store the database URL.
echo 'DATABASE_URL="file:./dev.db"' > .env

if you wanna use another database, you can change the DATABASE_URL to your own database URL.

for example MySQL: mysql://USER:PASSWORD@HOST:PORT/DATABASE more details: Prisma

  1. therefore, we have the schema /prisma/schema.prisma, then create the database,
# this will generate some files in /prisma
nx prisma migrate dev --name init
  1. if you change the schema info, you must execute the command below to update the database.
nx prisma generate
  1. now, we can start the server.
nr dev