---
title: "🧠 FastAPI DACA Microservices"
source: Panaversity Learn Agentic AI
source_url: https://github.com/panaversity/learn-agentic-ai
licence: Apache-2.0
domain: agentic-ai
subdomain: panaversity-agentic
date_added: 2026-04-25
---

# 🧠 FastAPI DACA Microservices
![Demo](output.gif)

This project comprises two FastAPI microservices:

- [agent_memory_service](./agent_memory_service/)
- [chat-service](./chat-service/)

Each service is managed using the `uv` Python package manager for efficient dependency management and execution.

## 🚀 Running the Services

### Prerequisites

- Ensure that [uv](https://docs.astral.sh/uv/) is installed on your system.
- Navigate to the `fastapi-daca-tutorial` directory, which contains both microservices.

### For Linux/macOS Users

1. **Make the script executable**:

   ```bash
   chmod +x run_services.sh
   ```


2. **Run the script**:

   ```bash
   ./run_services.sh
   ```
   **output**
   
   ```bash
   Server started at http://127.0.0.1:8001
   server   Documentation at http://127.0.0.1:8001/docs
   
   Server started at http://127.0.0.1:8000
   server   Documentation at http://127.0.0.1:8000/docs
 
   ```

   This script will start both microservices concurrently in the background.

### For Windows Users

1. **Run the batch file**:

   Double-click on `run_services.bat` or execute it via the Command Prompt:

   ```cmd
   run_services.bat
   ```


   This will open two separate Command Prompt windows, each running one of the microservices.

## 📝 Notes
- Both scripts utilize `uv run fastapi dev` to start the FastAPI applications in development mode.
- Ensure that each microservice directory contains a valid `pyproject.toml` file with the necessary configuratios.
- If you encounter issues with dependencies, consider running `uv sync` in each microservice directory to synchronize dependencies as specified in the `pyproject.toml` fils.
