This is a todo list use server action and Prisma for actions with DB.
Ready version you can watch on this site
Make sure you have the following installed:
- Node.js (+18 or upper)
- Docker (if you want use it)
First, run the development server:
Install packages:
npm i
# or
yarnRun dev server:
npm run dev
# or
yarn devOpen localhost with your browser to see the result.
If You want check created items for Todo list in DB, enter this cmd:
npx prisma studio- Copy
.env.exampleto.envand specify the settings.
I got key for DATABASE_URL on Prisma.io
- For start Docker
docker-compose up --build - After successful start, you can access:
- Next.js App with Todo list (
http://localhost:3000) - Prisma Studio (
http://localhost:5555)