Skip to content

Avinash-Acharya/FeeditBack

Repository files navigation

{Feed!tBack}

An AI based feedback collection and management system for Growing Businesses

Process-Flow/Architecture Diagram Figure 1: Process-Flow/Architecture Diagram

Getting Started

Local Development

Note: The following steps are valid for only Windows OS

Prerequisites:

  • npm
  • pip
  • ollama

Start with Cloning the repository

git clone https://github.com/Avinash-Acharya/FeeditBack.git

Navigate to the Root folder and install the necessary node packages

npm i

Now navigate to the /api folder and create an virtual environment and activate it

cd api
python -m venv myenv
myenv/Scripts/activate

Install the necessary Python Libraries

pip install -r requirements.txt

Create 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_M

Note : We even provide an option for openAPI key intigration on Admin page, So you can skip running Ollama locally.

Running Devlopment Server

You can achieve this in two ways:

First: By running a single command which runs both Nextjs and Flask server

npm run final

Note: 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 quit

OR

Second: By running them each separately

Run the Nextjs development server

npm run next-dev

And finall run Flask server in the /api folder

cd api
python index.py

Now 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.

Images

Home Page Figure 2: Home Page

Customer Page Figure 3: Customer Page

Admin Page Figure 4: Admin Page

About

An AI based RAG web application for Generating Feedback Report

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors