-
Clone this repository
-
Enter the newly created repository
-
Execute from terminal/command line npm install to configure initial setup
-
Execute from terminal/command line node server.js to launch the Node.js server
-
Using the Postman tool, hit the http://localhost:3000/new with a JSON markup like
{ "videoID": "[YOUTUBE_VIDEO_ID]" }
Wait a moment to see the video being inserted in the live-list.
-
Node.js
-
Postman
-
For better AMP testing (by adding #development=1 at the end of the URL) use Chrome
Code created using the tutorial at https://blog.pusher.com/building-a-realtime-feed-with-node-js-and-amp/