Skip to content

davidemarcoli/NextQuiz

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, start the database as a docker container:

docker run -p 5433:5432 -e POSTGRES_PASSWORD=mysecretpassword --name quiz-postgres -d postgres

After that, prepare the database schema:

npx prisma db push
# or
yarn prisma db push
# or
pnpx prisma db push
# or
bun x prisma db push

Then, generate the Prisma client:

npx prisma generate
# or
yarn prisma generate
# or
pnpx prisma generate
# or
bun x prisma generate

Finally, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

If you want to see the database, run:

npx prisma studio
# or
yarn prisma studio
# or
pnpx prisma studio
# or
bun x prisma studio

Open http://localhost:3000 with your browser to see the result.