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:
python3 -m venv venv
-
Install the modules listed in the
requirements.txt
file: -
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.dev
file. See the.env.sample
for configurations.
Example for running locally NEO4J at port 7474:
cp .env.sample .env.dev
-
Start the application:
python3 main.py
The starter listens on port 8000 on address 0.0.0.0.
The Neo4j Database example