This project is an AI Health Assistant with a Next.js frontend and a Node.js + Express backend. The backend also integrates FastAPI to run an AI chatbot.
- Operating System: Windows / macOS
- Frontend: Next.js
- Backend: Node.js + Express, FastAPI
- AI Chatbot: Runs on FastAPI
Before running the project, install all dependencies.
Run the following commands in both the backend and frontend folders:
cd backend # Navigate to the backend folder
npm install # Install backend dependencies
cd ../frontend # Navigate to the frontend folder
npm install # Install frontend dependenciesRun the following command in the backend folder:
pip install fastapi uvicornIf the AI chatbot relies on tinyllama_api, ensure the necessary dependencies are installed:
pip install -r requirements.txtFollow these steps to start the project.
Run the following command in the backend directory:
uvicorn tinyllama_api:app --host 0.0.0.0 --port 8000 --reloadThe chatbot API will be available at http://localhost:8000/tinyllama-generate.
Run the following command in the backend directory:
node server.jsThe backend will connect to http://localhost:5000.
Run the following command in the frontend directory:
npm run devThe frontend will be available at http://localhost:3000.
- Ensure Python version 3.8 or higher.
- Ensure Node.js version 16.0 or higher.
- If
npm installfails, try deleting thenode_modulesfolder andpackage-lock.json, then reinstall:
rm -rf node_modules package-lock.json # macOS/Linux
rd /s /q node_modules package-lock.json # Windows
npm installAuthors: Aurore Zhang, Xu (Sabrina) Yan, Louis Zhang, and Karen Chen Lai





