An AI based feedback collection and management system for Growing Businesses
Figure 1: Process-Flow/Architecture Diagram
Note: The following steps are valid for only Windows OS
Prerequisites:
npmpipollama
Start with Cloning the repository
git clone https://github.com/Avinash-Acharya/FeeditBack.gitNavigate to the Root folder and install the necessary node packages
npm iNow navigate to the /api folder and create an virtual environment and activate it
cd api
python -m venv myenv
myenv/Scripts/activateInstall the necessary Python Libraries
pip install -r requirements.txtCreate a .env file in the Root folder and add a field TIDB_DATABASE_URL and enter the TiDB Connection String which looks like mysql+pymysql://{TIDB_USER}:{TIDB_PASSWORD}@{TIDB_HOST}:{TIDB_PORT}/{TIDB_DB_NAME}?ssl_verify_cert=True&ssl_verify_identity=True
We will use ollama to run LLM models locally, So Install Ollama from here and run the below command
ollama pull phi3:3.8b-mini-128k-instruct-q4_K_MNote : We even provide an option for openAPI key intigration on Admin page, So you can skip running Ollama locally.
You can achieve this in two ways:
First: By running a single command which runs both Nextjs and Flask server
npm run finalNote: Wait till the below message shows up
[0] ▲ Next.js 14.2.4
[0] - Local: http://localhost:3000
[0] - Environments: .env
[0]
[0] ✓ Starting...
[0] ✓ Ready in 6.8s
[1] * Serving Flask app 'index'
[1] * Debug mode: off
[1] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
[1] * Running on http://127.0.0.1:5000
[1] Press CTRL+C to quitOR
Second: By running them each separately
Run the Nextjs development server
npm run next-devAnd finall run Flask server in the /api folder
cd api
python index.pyNow we got both Nextjs and Flask running on port http://localhost:3000 and http://127.0.0.1:5000 respectively.
Open http://localhost:3000 with your browser to see the result.


