https://github.com/leoziondev/devtalles-nextjs-admin-todos
https://github.com/leoziondev/devtalles-nextjs-admin-todos
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/leoziondev/devtalles-nextjs-admin-todos
- Owner: leoziondev
- Created: 2023-12-02T16:14:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-18T14:54:29.000Z (over 2 years ago)
- Last Synced: 2025-03-02T06:41:07.777Z (over 1 year ago)
- Language: TypeScript
- Size: 473 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```