An open API service indexing awesome lists of open source software.

https://github.com/leoziondev/devtalles-nextjs-admin-todos


https://github.com/leoziondev/devtalles-nextjs-admin-todos

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

# NextJS 14 Admin Todos APP - Next API Routes

Basic RESTFul API Handlers in NextJS 14

## Topics study in this project

- NextJS 14
- Client and Server Rendering
- Server Actions
- useOptimistc
- Cookies Client and Server Side
- Prisma
- PostgreSQL
- Yup Validator
- Docker
- SEED
- READ
- POST
- UPDATE
- Simple Paginate

## How to run this project

### Developmnet

1. Start database

```
docker compose up -d
```

2. Copy .env.example and rename to .env
3. Replace environment variables
4. Execute command `npm install`
5. Execute command `npm run dev`
6. Execute this Prisma commands:

```
npx prisma migrate dev
npx prisma generate
```

7. Execute SEED to [create local data db](localhost:3000/api/seed)

### Prisma commands

```
npx prisma init
npx prisma migrate dev
npx prisma generate
```