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.
After cloning the project, run the following commands in your terminal:
- Access the container shell (VSCODE)
docker exec -it next-app shReplace 'next-app' with the name of your app.
- Install dependencies (VSCODE)
bun install- Grant Right Permissions for Prisma/ (VSCODE)
make super
make grant-all- Run Prisma Migration (VSCODE)
make migrate- Build Docker Images (Konsole)
docker_build- Start the Docker container (Konsole)
docker_upTo make Konsole terminal command working, make sure, All bash aliases are setup already
I am still not sure, how to seed it properly. but follow it now. 10 users with 10 profiles & each user 5 posts.
- seed prisma with dummy data (vscode)
make seedIf error shown in terminal, run prisma migrate in local
bunx prisma generate
or
make local_generateAccess the application at http://localhost:3000