This script imports data from a PostgreSQL database into a Neo4j graph database.
- uv
- python
- Docker
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install python
uv python install
cp .env.example .env
docker run -d --name neo4j -p 7474:7474 -p 7687:7687 -e NEO4J_PLUGINS='["apoc", "graph-data-science"]' -e NEO4J_AUTH=neo4j/your-password -v neo4j-data:/data neo4j:latest
git clone https://github.com/chriscarrollsmith/archive-graph.git
cd archive-graph
# Install dependencies
uv sync
uv run python scripts/import.py
npm install
npm start
Navigate to http://localhost:7474/browser/
and login with your credentials ("neo4j" and "your-password" if you ran the Docker command above verbatim). Then click the "User" node to view the graph.