Prerequisites:
- Git: Ensure you have Git installed. If not, download and install it from https://git-scm.com/.
- Python: Make sure you have Python 3.x installed. You can download it from https://www.python.org/downloads/.
- Node.js: You'll need Node.js and npm for the frontend. Download and install them from https://nodejs.org/.
Steps:
- 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
- Open your terminal and run the following command to clone the repository to your local machine:
- If you want to use your System's Global Python Environment then you can skip step 2 & 3 (Recommeded to make venv)
-
Create a Virtual Environment:
- In the
backend
folder, create a virtual environment with the following command:python3 -m venv venv
- In the
-
Activate the Virtual Environment:
- Activate the virtual environment based on your operating system:
- On Linux:
source ./venv/bin/activate
- On Windows:
.\venv\Scripts\activate
- On Linux:
- Activate the virtual environment based on your operating system:
-
Install Backend Dependencies:
- Install the required Python packages using pip:
pip install -r requirements.txt
- Install the required Python packages using pip:
-
Start the Backend Server:
- Run the backend server using:
python main.py
- Run the backend server using:
- Visit the Ollama download page for Windows.
- Download the installer and follow the on-screen instructions to complete the installation.
ollama run qwen2:0.5b
This will download the Qwen2 model and run it.
-
Navigate to the Frontend Directory:
- In your terminal, navigate to the
frontend
directory within the project folder.
- In your terminal, navigate to the
-
Install Frontend Dependencies:
- Install the required Node.js packages by running:
npm install
- Install the required Node.js packages by running:
-
Run the Application:
- Start the frontend application by running:
npm run dev
- Start the frontend application by running:
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.