A simple starter for building RESTful APIs with FastAPI and NEO4J.
- Python FastAPI backend.
- Neo4J database.
- Authentication
- Deployment
To use the application, follow the outlined steps:
-
Clone this repository and create a virtual environment in it:
uv venv -
Install the modules listed in the
requirements.txtfile: -
run neo4j instance on docker
docker run \ --publish=7474:7474 --publish=7687:7687 \ --volume=$HOME/neo4j/data:/data \ neo4j -
You also need to start your NEO4J instance locally or on Docker and create a
.env.devfile. See the.env.samplefor configurations.
Example for running locally NEO4J at port 7474:
cp .env.sample .env.dev
-
Start the application:
uv run main.py
The starter listens on port 8000 on address 0.0.0.0.
The Neo4j Database example

