Project Setup
This guide will help you set up the MzeeChakula project locally for development.
Prerequisites
- Python 3.12+
- Node.js 16+
- Git
Cloning the Repository
Backend Setup
The backend is built with FastAPI.
-
Navigate to the backend directory:
-
Create a virtual environment:
-
Install dependencies:
-
Run the server:
The API will be available at
http://127.0.0.1:8000. Interactive docs:http://127.0.0.1:8000/docs.
Frontend Setup
The frontend is built with Vue 3 and Vite.
-
Navigate to the frontend directory:
-
Install dependencies:
-
Run the development server:
The app will be available at
http://localhost:5173.
Environment Variables
Create a .env file in the backend directory if needed (see .env.example).
| Variable | Description | Default |
|---|---|---|
MODEL_PATH |
Path to local model files | ./models |
NEO4J_URI |
URI for Neo4j database | bolt://localhost:7687 |
Troubleshooting
Model Files
If the backend cannot find trained models, it will fall back to a heuristic predictor. To use the full AI capabilities, ensure you have downloaded the model weights from Hugging Face and placed them in backend/models/.