QuizFi is a learn-to-earn platform built with Next.js and TypeScript. It allows users to create and take quizzes. Quiz creators can incentivize quiz takers to study by setting a prize for top performers.
QuizFi is a fully functional quiz app deployed on EDUChain testnet.
Anyone can create quizzes for free. Optionally, they can set a prize for top performers. Quizzes with a prize can be set as Public. Public quizzes are listed on the app home page. Payments are in EDU.
Everyone start a quiz at a given time and it ends for everyone when the time runs out. No one can submit answers after a quiz ends.
Quiz creators can view statistics of their own quizzes. They can see a list of participants along with their scores and won prizes.
Quiz takers can get a quiz report when the quiz time is over.
- Clone the repository to your local machine.
- Navigate to the project directory and run
pnpm install
to install all dependencies. - Setup MongoDB.
- Create a file named
.env.local
and fill it according to the information in the next section. - Run
pnpm run dev
to start the development server. - Open http://localhost:3000 to view the app in the browser.
MONGODB_URI=mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000
MONGODB_DB=quizfi
- React JS
- Next.js
- TypeScript
- MongoDB
- Material-UI