If you want to run this project locally:
- Clone this project
- Compile with
mvn clean install - Download the Tomcat server
- Create a mysql database called
nodewith user and passwordroot.- Why am I exposing the user and password? Because this database will be created locally and all data will be also stored locally. If it were a remote dabase with sensitive data I'd surely keep the credentials in some env var.
java -jar target/app.jar
- POST
/app/node: Creates a new node - GET
/app/node: return all nodes with their children - GET
/app/node/parentId: returns all children from the specified node - PUT
/app/node: updates some node