Giter Site home page Giter Site logo

castpie's Introduction

Castpie

Converts article to audio using AWS Polly

Introduction

Like many other commuters living and working around Los Angeles, I do not have the time to read articles that interest me on the go. I subscribed to Ben Thompson’s Stratechery, and I would like to use my daily two-hour commute to do something productive. So, I built this service for myself.

To get started, you simply enter a rss feed, and choose the blogpost you wish to listen. The article will be converted into audio (.mp3 format) in few seconds.

screehost castpie

Tech

  1. AWS Polly
  2. Digital Ocean

Docker

To build the app docker build -t pollycast .

Running a Docker Container docker images

docker run -it --rm -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY -e pollyreader=$DO_SPACES_ACCESS_KEY_ID -e Secret=$DO_SECRET_ACCESS_KEY -p 80:3000 pollycast

docker run -p 80:3000 {image-id}

At any moment, you can check running Docker containers by typing: docker container ls

Finally, you can stop the container from running by: docker stop {container-id}

Delete image docker rmi {image-id}

Delete linked container docker rm {container-id}

Endpoint/APIs

Feed

  1. CREATE - /api/feed
  2. GET - /api/feed
  3. GET - /api/feed/:id
  4. DELETE - /api/feed/:id

Articles

  1. GET - /api/feed/:id/articles
  2. GET - /api/articles/:id
  3. GET - /api/articles/:id/mp3

Todo

  1. Add user model
  • allow user to sign up and create his profile
  • allow user to submit rss feeds
  1. Add feed model
  2. Add audiopost model

Database - Mongodb

Models

  1. Feed
  • url
  • author
  • title
  • description
  1. Article
  • feed_id
  • title
  • pubDate
  • url
  • text
  • audio
  • images
    • image
      • url
      • width
      • height

castpie's People

Contributors

montekaka avatar

Watchers

James Cloos 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.