- Docker & Docker Compose installed
- Python 3.9+ installed (if you want to run locally without Docker)
- Create a
.envfile in the project root (you can copy from.env.example). This file provides environment variables used to configure Neo4j and the app.
Example values are included in .env.example.
Run everything with one command:
chmod +x ./scripts/docker-up.sh
./scripts/docker-up.shThis script will:
- Start or reuse a Neo4j container
- Build the app image
- Start the app container
The API will be available at:
http://localhost:8000
1. Start Neo4j
docker run -d --name neo4j-graphiti \
-p 7474:7474 -p 7687:7687 \
-e NEO4J_AUTH=neo4j/testpass \
-v $PWD/neo4j_data:/data \
neo4j:5.26If already created, just start it:
docker start neo4j-graphiti2. Build the app
docker build -t hugo-app .3. Run the app
docker run -d --name hugo-app -p 8000:8000 hugo-app:latestThe API will be available at:
http://localhost:8000
- Create and activate a virtual environment
python3 -m venv venv
source venv/bin/activate # Linux / macOS
venv\Scripts\activate # Windows- Install dependencies
pip install -r requirements.txt- Start Neo4j (requires Docker installed)
docker run -d --name neo4j-graphiti \
-p 7474:7474 -p 7687:7687 \
-e NEO4J_AUTH=neo4j/testpass \
-v $PWD/neo4j_data:/data \
neo4j:5.26If already created:
docker start neo4j-graphiti- Run the app
nohup python -m uvicorn api.main:app --host 0.0.0.0 --port 8000 &The API will be available at:
http://localhost:8000