Skip to content

Advanced Next.js playground showcasing Server Actions, SSR/CSR rendering strategies, and real-world authentication flows. Includes Prisma + PostgreSQL (Docker), database seeding, pagination, optimistic UI with useOptimistic, server/client validation, cookie management, RESTful API consumption, and BetterAuth with OAuth and custom credentials

Notifications You must be signed in to change notification settings

DevRodox/Nextjs-auth-playground

Repository files navigation

Development

Pasos para levantar la app en desarrollo

  1. Levantar la base de datos
docker compose up -d
  1. Crear una copia de el .env.template y renombrarlo a .env
  2. Reemplazar las variables de entorno
  3. Ejecutar el comando npm install para reconstruir los módulos de node
  4. Ejecutar el comando npm run dev para ejecutar aplicación en desarrollo
  5. Ejecutar estos comandos de Prisma
npx prisma migrate dev
npx prisma generate
  1. Ejecutar el SEED para crear la base de datos local

Nota: Usuario por defecto

usuario: test1@google.com password: 12345678

Prisma commnads

npx prisma init
npx prisma migrate dev
npx prisma generate

Prod

Stage

About

Advanced Next.js playground showcasing Server Actions, SSR/CSR rendering strategies, and real-world authentication flows. Includes Prisma + PostgreSQL (Docker), database seeding, pagination, optimistic UI with useOptimistic, server/client validation, cookie management, RESTful API consumption, and BetterAuth with OAuth and custom credentials

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages