Skip to content

ravikumawat7716/soft-engg-project-may-2024-se-may-23

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

AI Powered LMS

Local Project Setup

Prerequisites:

Steps:

  1. Clone the Repository:
    • Open your terminal and run the following command to clone the repository to your local machine:
      git clone https://github.com/ravikumawat7716/soft-engg-project-may-2024-se-may-23.git
      

Backend Setup:

  • If you want to use your System's Global Python Environment then you can skip step 2 & 3 (Recommeded to make venv)
  1. Create a Virtual Environment:

    • In the backend folder, create a virtual environment with the following command:
      python3 -m venv venv
      
  2. Activate the Virtual Environment:

    • Activate the virtual environment based on your operating system:
      • On Linux:
        source ./venv/bin/activate
        
      • On Windows:
        .\venv\Scripts\activate
        
  3. Install Backend Dependencies:

    • Install the required Python packages using pip:
      pip install -r requirements.txt
      
  4. Start the Backend Server:

    • Run the backend server using:
      python main.py
      

Ollama Installation and Running Qwen-2-0.5B

Step 1: Download and Install Ollama

  1. Visit the Ollama download page for Windows.
  2. Download the installer and follow the on-screen instructions to complete the installation.

Step 2: Run the given command in Terminal:

    ollama run qwen2:0.5b

This will download the Qwen2 model and run it.

Frontend Setup:

  1. Navigate to the Frontend Directory:

    • In your terminal, navigate to the frontend directory within the project folder.
  2. Install Frontend Dependencies:

    • Install the required Node.js packages by running:
      npm install
      
  3. Run the Application:

    • Start the frontend application by running:
      npm run dev
      

You're now ready to use the application locally. Access it in your web browser at http://localhost:5173/.

Now you can start development process.