To set up and run the FTR-chatbot application, follow the instructions for the front-end client and back-end server.
- Clone the repository:
git clone https://github.com/BowenZ217/ftr-chatbot.git
cd ftr-chatbot- Navigate to the front-end folder:
cd frontend- Install the dependencies:
npm install- Start the development server:
npm run dev- Open http://localhost:3000 with your browser to see the result.
- Navigate to the back-end folder:
cd backend- Install the dependencies:
pip install -r requirements.txt-
Configure Environment Variables:
- Locate the
backend/.env.samplefile and rename it to.envwithin the same directory. - For testing purposes, you can use a free database provider to quickly set up a database without cost.
- For Gemini API:
- Go to Google AI Studio.
- Login with your Google account.
- Create an API key.
- Open the newly renamed
.envfile and update the placeholders with your specific environment configurations.
- Locate the
-
Start the development server:
python ./run.py