A Next.js application with Prisma and shadcn/ui.
- Install dependencies:
npm install- Set up your environment variables:
cp .env.sample .envThe .env file is already configured for Docker. If you're using Docker (recommended), you don't need to change the DATABASE_URL.
- Start the Docker database:
npm run docker:upThis will start a PostgreSQL 16 container named logger-postgres on port 5432.
- Set up the database:
npm run prisma:migrate
npm run prisma:generate- (Optional) Seed the database:
npm run prisma:seed- Run the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
npm run docker:up- Start the database containernpm run docker:down- Stop and remove the database containernpm run docker:logs- View database logsnpm run docker:restart- Restart the database containernpm run db:connect- Connect to the database via psql
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLintnpm run lint:fix- Fix ESLint errorsnpm run format- Format code with Prettier
npm run prisma:generate- Generate Prisma Clientnpm run prisma:migrate- Run database migrationsnpm run prisma:studio- Open Prisma Studionpm run prisma:seed- Seed the databasenpm run prisma:reset- Reset the database (WARNING: deletes all data)
npm run docker:up- Start the database containernpm run docker:down- Stop and remove the database containernpm run docker:logs- View database logsnpm run docker:restart- Restart the database containernpm run db:connect- Connect to the database via psql
- Next.js 15 - React framework
- TypeScript - Type safety
- Prisma - Database ORM
- shadcn/ui - UI components
- Tailwind CSS - Styling