Skip to content

Huvinesh-Rajendran-12/neo4j-go-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neo4j Go API

This project implements a Go API that interacts with a Neo4j database, demonstrating how to perform CRUD operations and manage relationships in a graph database using Go.

Features

  • CRUD Operations: Create, Read, Update, and Delete nodes in the Neo4j database.
  • Relationship Management: Establish and manage relationships between nodes.
  • RESTful API: Exposes Neo4j operations through a RESTful API.
  • Dockerized: Includes a Dockerfile for easy deployment and containerization.

Prerequisites

  • Go 1.16 or higher
  • Neo4j 4.x or higher
  • Docker (optional)

Getting Started

Clone the repository:

git clone https://github.com/Huvinesh-Rajendran-12/neo4j-go-api.git

Set up your Neo4j database and update the connection details in the configuration file.

Install dependencies:

go mod tidy

Run the application:

go run main.go

API Endpoints

  • GET /api/users: Retrieve all users
  • GET /api/users/:id: Retrieve a specific user
  • POST /api/users: Create a new user
  • PUT /api/users/:id: Update a user
  • DELETE /api/users/:id: Delete a user

Docker Support

To run the application using Docker: Build the Docker image:

docker build -t neo4j-go-api .

Run the container:

docker run -p 8080:8080 neo4j-go-api

About

Neo4j Go API functionality

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages