neo4j-python/README.md

19 lines
558 B
Markdown

# Neo4j + FastAPI Demo
## Run (local)
1) Copy `.env.example` to `.env` and fill secrets.
2) `docker compose up -d --build`
3) API: http://localhost:8000/docs
4) 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).