https://github.com/eastend-street/neo4j-nextjs-practice
This is a sample Next.js project used to test Neo4j integration.
https://github.com/eastend-street/neo4j-nextjs-practice
neo4j nextjs
Last synced: about 1 month ago
JSON representation
This is a sample Next.js project used to test Neo4j integration.
- Host: GitHub
- URL: https://github.com/eastend-street/neo4j-nextjs-practice
- Owner: eastend-street
- Created: 2025-04-05T13:56:43.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-04-05T15:12:48.000Z (about 1 month ago)
- Last Synced: 2025-04-05T15:22:38.587Z (about 1 month ago)
- Topics: neo4j, nextjs
- Language: TypeScript
- Homepage:
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample Next.js Project to Test Neo4j Integration
This is a sample Next.js project used to test Neo4j integration.
By leveraging Neo4j, we can represent the codebase as a graph.
# ✅ Prerequisites
You have downloaded neo4j and you have run a neo4j database locally.https://neo4j.com/download/
# 🚀 Getting Started
Start the development server:```bash
npm run dev
```You’ll see a simple recipe app in your browser.
Note: This app was auto-generated by Cursor and serves only as a sample project for testing Neo4j integration.
# 🧠 How to Generate the Codebase Graph
Run graph.js to insert file dependency data into your local Neo4j database and generate a JSON file (code-graph.json) representing the code structure.Before running, update the password in graph.js to match your local Neo4j database credentials.
```bash
node graph.js
```
# 📊 How to View the Graph
To visualize the graph in the Neo4j browser, run the following Cypher query on your Neo4j browser:```cypher
MATCH (a:Component)-[:IMPORTS]->(b:Component)
RETURN a, b
```
You can also inspect the graph data in JSON format (code-graph.json):
# ✍️ Author
https://github.com/eastend-street