Entry for the Open-Source Mini-Hack 2024.
This project requires an API key from OpenAI. You must copy the .env.local.example
file to .env.local
, and fill in your API key.
Make sure to run npm install
when you are in the folder, this will install all the required packages.
Install Node 20, then run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
In the first two input boxes, you will enter the Course Name and Subject respectively.
Then, choose number of questions you would like for each different types of question.
After you hit generate, wait for the questions to show up and you can adjust the difficulty if you like.
You can also download all the questions into a docx or start a new round of question making!