AI Flashcards is an intelligent flashcard creation and management system designed to enhance learning efficiency and retention.
-
AI-Powered Flashcard Generation: Create high-quality, engaging flashcards based on your notes or topics.
- Thought-provoking questions
- Concise, accurate answers
- Variety of question types
-
User Management: Seamless user authentication and management with Clerk.
- Secure login
- User-specific flashcard sets
-
Interactive Flashcard Preview: Review and edit flashcards with an intuitive interface.
- Carousel view
- Edit questions and answers
- Real-time updates
- Next.js
- React
- TypeScript
- Shadcn UI
- Clerk for authentication
- Firebase firestore for database
- OpenAI for flashcard generation
- Zod for structured output and schema validation
- Vercel for deployment
-
Clone the repository:
git clone https://github.com/joshuakojko/flashcards.git
-
Install dependencies:
npm install # or yarn install # or pnpm install # or bun install
-
Set up environment variables: Copy the .env.test file to .env.local and update the values:
cp .env.test .env.local
-
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.
- Endpoint:
/api/generate
- Method:
POST
- Description: Generate flashcards based on provided notes.
- Request Body:
{ "notes": "Your notes or topic here" }
- Response:
{ "flashcards": [ { "question": "What is AI?", "answer": "AI stands for Artificial Intelligence." }, ... ] }