First clone the repository:
git clone https://github.com/asifrahaman13/knowledgebase.gitNext enter into the backend directory.
cd knowledgevase_backend/
Create a virtual environment.
virtualenv .venv
Activate the virtual environment. In unix based system like the Linux or Mac OS you can follow the following commands:
source .venv/bin/activate
Now install the required dependencies.
pip install -r requirements.txt
Rename the .env.example file to .env file.
In Unix based system you can use the following:
mv .env.example .envIn windows you can manually do the same.
Next update the required values in the .env file.
You need to enter the data into the .env file.
Now run the backend server.
uvicorn main:app --reload
Make sure the backend runs on port 8000.
Next enter into the front end.
cd knowdledgebase_frontend/
Install the dependencies
bun install
Rename the .env.example file to .env file.
In Unix based system you can use the following:
mv .env.example .envIn windows you can manually do the same.
Next update the required values in the .env file.
Run the development server:
bun run dev
Front end will run on port 3000