Serverless functions tweeting/sending/... random MDN articles
# clone the repo and get the source code $ git clone firstname.lastname@example.org:random-mdn/random-mdn-serverless.git # install dependencies $ npm install # that's it. :)
The project uses the Serverless Framework and currently includes one function to run every six hours.
tweet – scheduled function (every 6 hours)
The tweet function reads out the MDN sitemap, parses it and tweets the found article.
To exectue the function that powers the endpoint you can run
npm run dev inside of the project and it should execute the function locally.
It should look as follows:
$ npm run dev
To deploy and update the function
npm run deploy does the job. To do so you have to have the proper rights and @stefanjudis can provide these when needed.
If you would like to help
Code of conduct
This project follows and enforece a Code of Conduct to make everybody feel welcomed and safe.