- Python 3.10+
- Node.js 18+
- PostgreSQL 15+
- npm ve pip installed.
2 - Create .env file (example provided in .env.example file)
3- Start the PostgreSQL database
psql -U $(whoami) -c "CREATE DATABASE chatbot_db;"
4- Load the scheme.sql:
psql -U $(whoami) -d chatbot_db -f schema.sql
5- Langchain python microservice + FastAPI:
pip install -r requirements.txt
uvicorn chat_service:fastapi_app --reload --port 8000
6- Backend - Node.js + Express
npm install
node server.js
7-Frontend - React:
cd frontend/
npm install
npm start
Test the app:
• http://localhost:3000
• /signup or /login
• /chat → enjoy the appointment bot