Skip to content

shloch/DatabaseNestedSets

Repository files navigation

Database Nested sets

Storing, Querying binary trees in a relational database and building a REST api from it. More about the exercise here

Visual sketch of data representation

alt text

Project Specs

alt text alt text

Installations and Setup

  • Execute the SQL queries inside tables.sql to setup the database and it's tables
  • Execute the SQL queries inside data.sql to insert data
  • clone/download this project and put the folder inside your server hosting folder (www, htdocs etc..)
  • configure your database access inside the file config/config.php
  • launch your Webserver and open the project via your favourite browser

Testing the app

This app is deployed and availaible online here

alt text

Demo videos

Sample search string = https://nested-sets.herokuapp.com/api.php/?node_id=2&language=italian&search=helpdesk&page_size=210&page_num=0

Code walk-through video

Tools used

  • phpMyAdmin (DBMS tool)
  • MAMP (web server)
  • Postman (testing API calls)
  • Curl (command line tool to test API calls)
  • MySQL WorkBench (DBMS tool)
  • Bash terminal (for typing commands)
  • Heroku (deployment)
  • VSCode (coding tool)

Future ameliorations

  • populate the database with more data (more complex tree) to play with
  • Build a React-App (front-end) to fetch the data and display on a compelling responsive UI

Contributor

👤 SHEY Louis CHIA

Acknowledgements

About

Storing, Querying binary trees in a relational database and building a REST api from it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages