Quiztify is an interactive web application with multiple-choice questions in various categories. Users can test their knowledge in a fun way. Its design is simple and responsive, making it suitable for all devices.
- NextJS 14
- NextAuth
- Typescript
- react-query
- react-hook-form
Clone this project :
git clone git@github.com:dika841/dot-intern-fe-web-quiz.git
Install Depedencies :
pnpm install
Before setting up Prisma, ensure that you have the following installed:
- Mysql (or another database supported by Prisma)
- Prisma CLI (installed globally)
Setup your .env file :
DATABASE_URL= "your database url here"
NEXT_PUBLIC_API_URL = http://localhost:3000/api
NEXTAUTH_SECRET=
NEXTAUTH_URL=http://localhost:3000
SECRET_KEY =
for example DATABASE_URL="mysql://USER:PASSWORD@localhost:3306/DATABASE_NAME?schema=public"
run
pnpx prisma migrate dev
run
pnpx prisma generate
npx prisma db seed
pnpm dev
Open http://localhost:3000 with your browser to see the result.