To install, as I did, do the following: 1.
git clone https://github.com/alexxgathp/loopback-sandbox.git
- Navigate to the directory and install.
cd loopback-sandbox
npm install
- Start the server in a command-line by going to the /server directory and execute "node server".
cd server
node server
- In the browser, open to the address http://localhost:3000/api/mymodels/change-stream
- In another command-line, navigates to /customscripts and execute "node customscript.js".
cd customscripts
node customscript.js
- Observe no change in the browser.
- In another browser or tab, go to Mymodel >> PUT. Fill it out and click "Try it out!"
- Observer a change emitted in the other tab / browser.
1.0
- Dillinger-produced readme file.