-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (18 loc) · 704 Bytes
/
Copy pathMakefile
File metadata and controls
22 lines (18 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: init start stop logs
init:
@echo "Setting up virtual environment and installing dependencies..."
@if [ ! -d ".venv" ]; then python3 -m venv .venv; fi
@.venv/bin/pip install -e .
start:
@echo "Booting storage layer (Neo4j & Redis)..."
@docker-compose up -d
@echo "Starting KryptoDB Daemon in the background..."
@.venv/bin/uvicorn kryptodb.daemon.server:app --port 8000 & echo $$! > .daemon.pid
@echo "KryptoDB is ready! You can now use the CLI or connect your MCP client."
stop:
@echo "Stopping KryptoDB Daemon..."
@if [ -f .daemon.pid ]; then kill `cat .daemon.pid` || true; rm .daemon.pid; fi
@echo "Stopping storage layer..."
@docker-compose down
logs:
@docker-compose logs -f