Skip to content

Latest commit

 

History

History
77 lines (52 loc) · 2.24 KB

File metadata and controls

77 lines (52 loc) · 2.24 KB

RSS Tree

Netlify Status UptimeRobot status page

Generate RSS Feeds from sources that don't have one.

What's an RSS Feed?

Feeds

Feed Uptime Path Link
Groww Digest - Daily Groww service monitor /.netlify/functions/rss-groww rsstree.netlify.app/.netlify/functions/rss-groww
Bytes - The Best JavaScript Newsletter Bytes service monitor /.netlify/functions/rss-bytes rsstree.netlify.app/.netlify/functions/rss-bytes
Demo images
Demo of Groww Digest - Daily Demo of Bytes

Development Requirements

Project Scaffolding

Steps:

netlify init
netlify functions:create --name <func-name>

Local Development

npm install
cp .env.sample .env  # Put all environment variables here
netlify functions:serve

Testing

Automated tests:

npm run test

Manual tests:

# when caching with last-modified header
curl 'http://<host>/.netlify/functions/<func>' -Is | grep -i 'last-modified'
curl 'http://<host>/.netlify/functions/<func>' -H 'If-Modified-Since: <last-modified>' -I

# when caching with etag header
curl 'http://<host>/.netlify/functions/<func>' -Is | grep -i 'etag'
curl 'http://<host>/.netlify/functions/<func>' -H 'If-None-Match: "<etag>"' -I

Debugger

Put a debugger statement whereever you want it. Then:

Run the debugger with tests:

npm run test:debugger

Run the debugger when running functions locally:

NODE_OPTIONS="--inspect" netlify functions:serve