Agriculture - dealwallet1/tsssinfotech_docs GitHub Wiki
Agriculture
Backend Setup
Step 1:
Clone the project:
git clone https://github.com/dealwallet1/cs_agent-py.git
Step 2:
Checkout to Agriculture
branch.
Step 3:
Create a .env file and copy the content from .env.sample to .env.
Step 4:
Change directory to the project folder:
cd cs_agent-py
Step 5:
Create a virtual environment (Python version < 3.12):
py -3.12 -m venv venv
And activate the virtual environment:
`./venv/Scripts/activate`
Step 6:
Generate the lock file:
poetry lock
Step 7:
Install the dependencies:
poetry install
Step 8:
Run the agent server:
poetry run agent_server
Customer Support Frontend
Step 1:
Clone the project:
https://github.com/dealwallet1/customer_support.git
Step 2:
Checkout to Agriculture
branch.
Step 3:
Create a .env file and copy the content from .env.sample to .env.
Step 4:
Install the dependencies:
npm install
Step 5:
Run the development server:
npm run dev
Chatbot
Step 1:
Visit: http://localhost:3000/agriculture
Step 2:
You will be redirected to the agriculture articles page.
Step 3:
Click the Login button on the top-right corner.
Step 4:
Click the chat icon and start asking questions related to agriculture articles etc.