Skip to content

A repository for reproducing LoopBack community issues.

Notifications You must be signed in to change notification settings

GrandmasterGrogu/loopback-sandbox

 
 

Repository files navigation

Sandbox for this issue: Custom script not affecting the changestream

strongloop/loopback#2140

To install, as I did, do the following: 1.

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

Version

1.0

Credits

  • Dillinger-produced readme file.

About

A repository for reproducing LoopBack community issues.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.9%
  • Makefile 14.1%