Retrieve the NOC list
I am using a MacBook Pro (Retina, 15-inch, Mid 2015) running MacOS Catalina 10.15.5.
- clone the repo from GitHub
- cd into the root directory
- if you don't have bundler, run
gem install bundler
- run
bundle install
- Ensure you have the adhoc development server running
- Check if you have Docker running on your desktop. You can check by running
docker
in your terminal- If not, download Docker. Docker Desktop is an easy way to do so!
- Start Docker Desktop
- open a new terminal window and run
docker run --rm -p 8888:8888 adhocteam/noclist
- note: if you get an error like
Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory.
you may have to either restart Docker, or rundocker start
(if you're not using Docker Desktop)
- note: if you get an error like
- You should see Listening on http://0.0.0.0:8888.
- Check if you have Docker running on your desktop. You can check by running
- run
bundle exec rspec
from the root directory
- run
bundle exec bin/noclist
from the root directory
- include pry in the file
require pry
- include the configuration
Pry.config.input = STDIN
Pry.config.output = STDOUT
- add
binding.pry
where you'd like to set a breakpoint