Follow these steps to get the application running locally.
- Node.js 18 or higher
- npm or yarn
- A Neo4j Aura instance with DataAPI GraphQL enabled
- The Movies dataset loaded in your database
npm install-
Copy the example environment file:
cp .env.example .env
-
Edit
.envand add your Neo4j credentials:VITE_NEO4J_GRAPHQL_URL=https://your-instance-id.databases.neo4j.io/graphql VITE_NEO4J_GRAPHQL_TOKEN=your-auth-token
- Log in to Neo4j Aura Console
- Select your database instance
- Click "Connect" → "DataAPI GraphQL"
- Copy the endpoint URL and generate an auth token
npm run devThe application will be available at http://localhost:5173
If you don't have the Movies dataset in your database:
- Go to Neo4j Aura Console
- Open your database with Neo4j Browser
- Run this command to load the dataset:
:play movies
- Follow the instructions to load the sample data
npm run buildThe built files will be in the dist directory.
npm run previewsrc/
├── components/ # React components
│ ├── MovieList.tsx
│ ├── MovieForm.tsx
│ ├── Search.tsx
│ └── RelationshipManager.tsx
├── graphql/ # GraphQL operations
│ └── operations.ts
├── lib/ # Utilities & config
│ └── graphql-client.ts
├── types/ # TypeScript types
│ └── movie.ts
├── App.tsx # Main application
├── App.css # Styles
└── main.tsx # Entry point
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLint
If port 5173 is already in use, Vite will automatically use the next available port. Check the terminal output for the actual port.
Make sure:
- Your
.envfile is in the project root (same directory aspackage.json) - Variable names start with
VITE_ - You've restarted the dev server after changing
.env
Ensure your Neo4j Aura instance allows requests from http://localhost:5173. You can configure this in the Aura console.
Verify:
- Your endpoint URL is correct
- Your auth token is valid
- The Movies dataset is loaded in your database
- The schema matches the queries (Movie and Person node labels)
- Read QUICKSTART.md for a detailed tutorial
- Check BEST_PRACTICES.md for production tips
- Explore ADVANCED_EXAMPLES.md for more features
- See TROUBLESHOOTING.md if you encounter issues