Move the client folder to your original Pi, SSH into your original Pi, navigate to the client folder, and run the following commands:
npm i --save johnny-five raspi-io
npm i
Then, move the broker folder to the second Pi you set up, SSH into it, navigate to the broker folder, and run the following commands:
sudo apt-get install mongodb-server // installs mongodb
systemctl enable mongod.service // makes it so mongodb starts when the pi does
npm i
Then, reboot the broker Pi:
sudo reboot
Now that we have our project dependencies in place and installed, it's time to wire up this project up.