Skip to content

nishatislam04/go-next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Start Next.js Project from Scratch

Head over to the Notion page below to learn how to set up a Next.js application from scratch using:

  • Docker
  • Bun
  • MySQL
  • Prisma
  • phpMyAdmin

👉 Notion Guide: Create a nextjs 15 project from scratch in Docker, MySQL, Prisma, Bun.


🛠️ Follow These Steps After Cloning the Project

After cloning the project, run the following commands in your terminal:

  1. Access the container shell (VSCODE)
docker exec -it next-app sh

Replace 'next-app' with the name of your app.

  1. Install dependencies (VSCODE)
bun install
  1. Grant Right Permissions for Prisma/ (VSCODE)
  make super
  make grant-all
  1. Run Prisma Migration (VSCODE)
  make migrate
  1. Build Docker Images (Konsole)
docker_build
  1. Start the Docker container (Konsole)
docker_up

To make Konsole terminal command working, make sure, All bash aliases are setup already

Run Prisma seed

I am still not sure, how to seed it properly. but follow it now. 10 users with 10 profiles & each user 5 posts.

  1. seed prisma with dummy data (vscode)
  make seed

If error shown in terminal, run prisma migrate in local

  bunx prisma generate
  or
  make local_generate

Access the application at http://localhost:3000

About

RBAC System with Users & their Post Management with Login in NextJS 15 App Router

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors