This guide provides detailed instructions for developers who need to run and debug the backend services natively (outside of Docker) on their local machine.
For running the entire backend stack at once, please refer to the Docker Compose instructions in the main README.
Before running any service, ensure you have completed the following setup steps:
-
Database Ready: Your YugabyteDB instance must be running and accessible. The schema should be applied as described in the Database Guide.
-
Environment Configuration:
- Copy the root
.env.examplefile to.env:cp .env.example .env - Fill in all the required values (
DATABASE_URL,GEMINI_API_KEY, etc.). Both services will source their configuration from this central file.
- Copy the root
Follow these steps to run the API & AI service directly on your machine with hot-reloading for active development.
- Navigate to the service directory:
cd api_service - Create and activate a Python virtual environment:
python3 -m venv venv source venv/bin/activate - Install dependencies:
pip install -r requirements.txt
- Run the development server:
uvicorn app.main:app --reload
The API service will be available at http://localhost:8000.
Follow these steps to run the Ingestion service directly on your machine.
- Navigate to the service directory:
cd ingestion_service - Install dependencies:
npm install
- Run the development server:
npm run dev
The Ingestion service will be available at http://localhost:3000.
</> Built by Mission Control | DevByZero 2025
Defining the infinite possibilities in your DevOps pipeline.