- Ruby 2.6.3
- Homebrew (if you don't have brew)
- Docker
- Run
docker -v
in your terminal to ensure you have docker installed - Clone the repository in your working directory
git clone https://github.com/byee322/maxsumtreeapp3.git
- Go into folder
cd maxsumtree3
- Run
docker-compose up --build
- In a seperate terminal
docker-compose run app rake db:create db:migrate
- Please visit
localhost:3000
in your browser and find that max tree!
docker-compose run app rspec
- I thought to solve the lots of users problem, I'd give everyone the script to have the computing on the client side and not overloading the server.
- Could convert the computation to a backend service job to process the requests if the tree's got to be much larger.
- Adding a Tree table to the DB so a user could save their saved trees or in progress trees.
- Feature tests - ensure proper output for different tree inputs.
- Component tests - props type checking, classname checking on jsx components using jest.