558 B
558 B
Neo4j + FastAPI Demo
Run (local)
- Copy
.env.example
to.env
and fill secrets. docker compose up -d --build
- API: http://localhost:8000/docs
- Neo4j Browser: http://localhost:7474
Endpoints
- POST
/echo
- GET
/messages
- GET
/messages/{id}
, PUT/messages/{id}
, DELETE/messages/{id}
- POST
/import/messages
(APOC CSV import) - POST
/ai/echo
(Azure OpenAI; stores reply in Neo4j)
Notes
.env
is not committed. Use.env.example
as template.- Neo4j data is ignored (
neo4j/data
,neo4j/logs
, etc).