Implement Searching in trees
Here are the instructions: URL: https://random-tree.herokuapp.com/
- Create a RoR application that catches the tree
- Design search function to quickly find Child/Parent nodes
What we expect from the API
- HTTP GET /:tree_id
- => Return the saved structure
- HTTP GET /:tree_id/parent/:id
- => Return the list of parents IDs
- HTTP GET /:tree_id/child/:id
- => Return the list of childs
https://protected-reaches-35852.herokuapp.com/
Make sure that you install Ruby v2.5
, MySQL v5.7
and Redis
git clone https://github.com/Maghraby/growthtribe.git
Running this command will install all required gems.
cd growthtribe
bundle install
bin/rails s
rspec
Please don't forget to change database and redis configurations from config/database.yml
and config/redis.yml
file