A one-page Next.js application for quizzes. Made in React Typescript, features client-side components, API routes within the Next.js client, and utilizes Shadcn/UI, Tailwind CSS, and Radix UI for styling and components. It also employs Axios for API calls and Sonner for displaying toasts.
This project is a one-page application designed for taking quizzes. Users can choose a username, access a list of quizzes, and complete quizzes, with each questions containing 2 to 4 answers.
- User authentication with username selection.
- Quizzes list.
- Dynamic quiz completion interface.
- Next.js - Framework for React
- Shadcn/UI - UI library
- Tailwind CSS - Utility-first CSS framework
- Radix UI - Collection of React components
- Axios - HTTP client for browser and Node.js
- Sonner - Toast notifications
npm install
or yarn install
npm run dev
or yarn dev
4. Open http://localhost:3000 to view it in the browser.
- Choose a username.
- Access the quizzes list.
- Complete a quiz (from 2 to 4 answers per questions).
quiz/
├── app/
│ ├── api/
│ │ └── quiz/
│ │ └── route.ts
│ ├── layout.tsx
│ └── page.tsx
├── components/
│ ├── ui/
│ ├── pages/
│ ├── providers/
│ └── ...
├── lib/
│ ├── quiz.ts
│ ├── answer.ts
│ └── ...
└── ...
Website deployed by Vercel.
This project is licensed under the MIT License.