uthmanmoh / FamilyTree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Family Tree Backend

This is the backend for the Family Tree project. It lets you manage a database of people and their relationships.

It is written in Kotlin using the Spring Boot framework, and Neo4j as the database.

Development

Running the backend alone (if the database is already running)

gradle bootRun

Running the backend with the database

Create a .env file in the root directory with the following variables set:

NEO4J_USERNAME=<YOUR_NEO4J_USERNAME>
NEO4J_PASSWORD=<YOUR_NEO4J_PASSWORD>

And then run:

docker-compose up

Run the tests

gradle test

This will startup a Neo4j database in a docker container and run the tests.

Progress so far

Endpoints Completed and Tested

  • GET /members - Get all members
  • POST /members - Create a new member
  • DELETE /members/{id} - Delete a member

About


Languages

Language:Kotlin 91.3%Language:Dockerfile 8.7%