A simple AMP live blog that demonstrates how AMP sites can be updated in realtime with the help of the amp-live-list component and a backend server (Node.js).
- Node.js
- A package manager,
npm
orYarn
- [Postman] (https://www.getpostman.com)
- Clone the repo - https://github.com/yomete/amp-live-blog.
- Install all dependencies with
npm install
. - Run
node server
to see the application running athttp://localhost:5000
. - Open the Postman application.
- To add content to the blog and see it update in realtime, send a POST request on Postman to
http://localhost:5000/posts/new
with abody
value.