<file_sep>package com.neo4j.todo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories;

@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
@EnableNeo4jRepositories
public class TodoWithNeoApplication {

	public static void main(String[] args) {
		SpringApplication.run(TodoWithNeoApplication.class, args);
	}

}
<file_sep>package com.neo4j.todo.controller;

import com.neo4j.todo.entity.TodoDAO;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/todo")
public interface ITodoController {

	@PostMapping
	void createTodo(TodoDAO todo);

	@GetMapping("/{id}")
	TodoDAO getTodo(@PathVariable Long id);

	@DeleteMapping("/{id}")
	void deleteTodo(@PathVariable Long id);

	@PutMapping("/{id}")
	void updateTodo(@PathVariable Long id, TodoDAO updateTodo);

}
<file_sep>package com.neo4j.todo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.data.neo4j.core.schema.GeneratedValue;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Node;

@Node("Todo")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TodoDAO {

	@Id
	@GeneratedValue
	private Long id;
	private String name;
	private String description;
	private Boolean done;

}
<file_sep>package com.neo4j.todo.Service;

import com.neo4j.todo.entity.TodoDAO;

public interface ITodoService {

	void creatTodo(TodoDAO todo);

	void deleteTodo(Long id);

	void updateTodo(Long id, TodoDAO updatedTodo);

	TodoDAO getTodo(Long id);

}
<file_sep># Java with Neo4j

## Default prerequisites
* Neo4j server run on default port: `bolt://localhost:7687`
* Username set to: `neo4j`
* Password set to: `<PASSWORD>`

## Example requests
To run using postman use this file: `src/test/resources/TodoCollection.json`