GithubHelp home page GithubHelp logo

lantrix / angryhuman-rss-generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 58 KB

RSS Generator for Angry Human on Rockland World Radio

Home Page: http://www.rocklandworldradio.com/program/angryhuman

JavaScript 95.37% Makefile 4.63%

angryhuman-rss-generator's Introduction

Angry Human RSS Generator

Deployments

Deployments to AWS Lambda are done with Serverless

Deployment Setup

Details below are from the Install Serverless Quick Start Guide.

Step Command Description
1. npm install -g serverless Install Serverless CLI
2. Set up your Provider credentials Connect Serverless with your provider
3. cd angryhuman-rss-generator Change into your service directory

Configuration

Populate the YML configuration file config.yml

# Serverless.yml config
globalSchedule: rate(1 hour) #event schedule as per http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html
bucket: angryhumanrss #The S3 bucket to create
region: us-east-1 #AWS region to publish lambda functions to

# Handler runtime config set
default:
  sourceRssUri: http://www.mediafire.com/rss.php?key=jyk6j7ogc076r #Source RSS of published mp3s
  bucket: angryhumanrss #The S3 bucket to host the data and XML (same as above)
  region: us-east-1 #AWS region to use for aws-sdk in the function
  dataKey: data/rssdata #The S3 key to read known RSS items from
  dataOutKey: data/rssdata-out #The S3 key to write updated known RSS items to (different for debugging; same for prod)
  rssKey: angryhuman.xml #The S3 key to publish the RSS XML to

Deploy function

Step Command Description
1. serverless deploy -v Deploy to your AWS account
2. serverless invoke --function generaterss -p event.json Run the function we just deployed

Find out published XML URI

aws cloudformation describe-stacks --stack-name angryhuman-rss-generator-dev --query Stacks[].Outputs[]

The xml is published on the S3 backed website at /angryhuman.xml

angryhuman-rss-generator's People

Contributors

lantrix avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.