My tasks2 TASKS
- Webアプリの全体像を読む(完了)
- はじめてのアプリを作る(未完了)
React・Next.js・TypeScript・Prismaで作るTODOアプリの裏側を見てみよう。
const title = body.title.trim();
const todo = await prisma.todo.create({
data: { title }
});
return NextResponse.json(todo,
{ status: 201 });Prisma Clientは、このサーバー上で実行します。
| id | title | done |
|---|---|---|
| 1 | Webアプリの全体像を読む | true |
| 2 | はじめてのアプリを作る | false |