This project leverages the Gemini API to create flashcards from PDF notes, streamlining the study process by transforming written content into concise, question-and-answer flashcards.
- Gemini API Integration: Use AI to identify key concepts and generate flashcards.
- Export Options: Save flashcards in various formats such as JSON or plain text.
- Node.js
- A valid Gemini API key
Install the required Node.js libraries using:
cd backend
npm install
Example package.json
dependencies:
{
"dependencies": {
"@google/generative-ai": "^0.21.0",
"cors": "^2.8.5",
"dotenv": "^16.4.7",
"express": "^4.21.2",
"multer": "^1.4.5-lts.1"
}
}
-
Clone the repository:
git clone https://github.com/Pr0-T0/flashcards-app.git
-
Install dependencies:
cd backend npm install
-
Add your Gemini API key:
- Create a
.env
file in the project directory. - Add the following line:
GEMINI_API_KEY=your_api_key_here
- Create a
- **run frontend/index.html using Liveserver
- **run backend/server.js
node server.js
- input PDF file
- run by clicking confirm
- Review and use the flashcards for study purposes.
Contributions are welcome! Please fork the repository and submit a pull request.
this is a basic implementation of Generation of flashcards using GEMINI,it it assumed that both backend and frontend are maintained on the same machine.