Skip to content

Latest commit

 

History

History
98 lines (62 loc) · 1.71 KB

README.md

File metadata and controls

98 lines (62 loc) · 1.71 KB

1. Clone the Project

Use the git clone command to clone your project from GitHub:

git clone https://github.com/pasindu26/QueryMaster.git

2. Navigate to the Project Directory

Change into the project directory:

cd QueryMaster

1. Frontend

1. Navigate to the Project Directory

Change into the project directory:

cd frontend

2. Install Dependencies

Run the following command to install all the required dependencies from the package.json file:

npm install

3. change the backends server IP with yours one

vi src/app/js

change line number 10

const res = await axios.get('http://172.171.78.201:5000/api/logs');

3. Start the Development Server

After the dependencies are installed, start the React development server:

npm start

This will start your React application and it will usually be accessible at http://localhost:3000.


Troubleshooting Tips:

  • Ensure you have Node.js and npm installed on the new VM. You can check by running:

    node -v
    npm -v

    If not installed, install Node.js:

    sudo apt update
    sudo apt install nodejs npm -y
  • If the npm install step fails, ensure the correct Node.js version is installed (you can check the required version in package.json under the engines field, if defined).

2. Backend

1. Navigate to the Project Directory

Change into the project directory:

cd ../frontend/

1. Run below commands

apt install python3.10-venv
python3 -m venv venv
source venv/bin/activate

pip install -r requirements.txt

python3 app.py