Quiz Builder is a full-stack web application for creating and viewing custom quizzes.
The project includes:
- Backend: Express.js, TypeScript, Prisma, SQLite
- Frontend: Next.js, TypeScript
- Database: SQLite via Prisma
- Create a quiz with multiple questions
- Supported question types:
- Boolean
- Input
- Checkbox
- View all quizzes
- View quiz details
- Delete quizzes
quiz-builder/
├── backend/
├── frontend/
└── README.mdInstall dependencies:
npm install
Create .env file from example:
cp .env.example .env
Run database migration:
npx prisma migrate dev
Start backend:
npm run dev
Backend will run on:
http://localhost:4000
Install dependencies:
npm install
Create .env.local file from example:
cp .env.example .env.local
Start frontend:
npm run dev
Frontend will run on:
http://localhost:3000
POST /quizzes
GET /quizzes
GET /quizzes/:id
DELETE /quizzes/:id
The project uses SQLite, so no external database server is required. The database is created locally using Prisma migrations.