https://github.com/yakiisama/example-todo-list-t3-react-app
use create-t3-app to make todo list demo.
https://github.com/yakiisama/example-todo-list-t3-react-app
create-t3-app prisma todolist trpc
Last synced: 2 months ago
JSON representation
use create-t3-app to make todo list demo.
- Host: GitHub
- URL: https://github.com/yakiisama/example-todo-list-t3-react-app
- Owner: yakiisama
- Created: 2023-08-08T14:21:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-09T08:44:57.000Z (almost 2 years ago)
- Last Synced: 2025-01-18T04:36:11.933Z (5 months ago)
- Topics: create-t3-app, prisma, todolist, trpc
- Language: TypeScript
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
use Create t3 app to make a TODO list demo.

## Quick Starthere recommend a package manager library: [ni](https://github.com/antfu/ni)
1. first, make an env file to store the database URL.
```sh
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](https://www.prisma.io/docs/concepts/database-connectors/mysql#configuring-an-ssl-connection)2. therefore, we have the schema `/prisma/schema.prisma`, then create the database,
```sh
# this will generate some files in /prisma
nx prisma migrate dev --name init
```3. if you change the schema info, you must execute the command below to update the database.
```sh
nx prisma generate
```4. now, we can start the server.
```sh
nr dev
```