Coder Social home page Coder Social logo

ai-powered-exam-prep-platform's Introduction

AI-Powered Exam Prep

This project provides an AI-powered solution to generate personalized study schedules for students preparing for exams. The application consists of a Flask backend that interacts with Google's generative AI to create the study schedule and a React frontend for the user interface.

Features

  • Input exam-related details like datesheet, favorite and disliked subjects, study hours, etc.
  • Generate a personalized study schedule based on the provided information.
  • Display the generated schedule in a user-friendly format.

Technologies Used

  • Flask
  • React
  • Google Generative AI
  • Axios
  • dotenv
  • Flask-CORS
  • React Markdown

Getting Started

Prerequisites

Ensure you have the following installed:

  • Python 3.x
  • Node.js
  • npm (Node Package Manager)

Setup

  1. Clone the repository:
git clone https://github.com/yourusername/ai-powered-exam-prep.git
cd ai-powered-exam-prep
  1. Backend Setup:

    a. Navigate to the backend directory:

    cd backend

    b. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate   # On Windows, use `venv\Scripts\activate`

    c. Install the required packages:

    pip install -r requirements.txt

    d. Create a .env file in the backend directory and add your Google Generative AI API key:

    GOOGLE_GENAI_API_KEY=your_api_key_here
    

    e. Run the Flask server:

    flask run
  2. Frontend Setup:

    a. Navigate to the frontend directory:

    cd frontend

    b. Install the required packages:

    npm install

    c. Start the React development server:

    npm run dev

How to Get Your Google Generative AI API Key

  1. Visit the Google Cloud Console.
  2. Create a new project or select an existing one.
  3. Navigate to the "APIs & Services" section.
  4. Enable the Generative AI API.
  5. Go to "Credentials" and create an API key.
  6. Copy the API key and add it to the .env file in the backend directory as shown above.

Project Structure

ai-powered-exam-prep/
├── backend/
│   ├── app.py
│   ├── requirements.txt
│   └── .env
└── frontend/
    ├── public/
    ├── src/
    │   ├── App.js
    │   ├── App.css
    │   └── index.js
    ├── package.json
    └── README.md

API Endpoints

  • POST /api/generate_schedule - Generate a personalized study schedule based on provided input data.

Frontend Components

  • App.js - Main React component that contains the form for input and displays the generated study schedule.

Usage

  1. Open your browser and navigate to http://localhost:3000.
  2. Fill in the form with the required details.
  3. Click on "Generate Schedule" to get your personalized study schedule.

Contributing

If you want to contribute to this project, please fork the repository and create a pull request with your changes.

License

This project is licensed under the MIT License.

ai-powered-exam-prep-platform's People

Contributors

rudransh61 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.