Coder Social home page Coder Social logo

uss_rss_reader's People

Contributors

howdoicomputer avatar kyleady avatar

Watchers

 avatar  avatar  avatar

Forkers

howdoicomputer

uss_rss_reader's Issues

Main index page

We should have a main index page for tracking feeds. For right now, we should just make it a simple unordered list of news stories on a single page with a mechanism for adding a new feed. You click on an entry for a feed and it opens up that article in a new browser page. A list of href's can do that just fine and Bootstrap can make it pretty.

I think that, for our first release, we should work on getting Slashdot's feeds working. We can put in fake data if we want to work around potentially blocking tickets.

When a user hits the index route:

  • Fetch list of articles from a feed
  • Iterate over articles in the ERB template linked to the index controller, creating an unordered list.
  • Format list so that it looks pretty

Tada.

Windows incompatiblity

We're having an issue getting Rails 5 running on Windows 7 and 10 due to having trouble with getting the extensions for various database drivers compiled.

I think I may have found the solution for PostgreSQL.

First, we need to use a beta version of the pg gem. So... gem 'pg', '>= 0.19.0.beta'

Then we need to add C:\Program Files\PostgreSQL\9.6\bin to our PATH. This exposes the libpq.dll file to our build tools.

Then! gem install pg -v '0.19.0.pre20160409114042' from the command line should work.

Now I'm having trouble authenticating to postgres locally but I think that's because Windows is starting up a previously installed version and I have to investigate that.

When I'm done fixing what needs to be fixed then I'll submit a pull request against database.yml.

Feed register endpoint

Ruby has built in support for parsing RSS feeds. This is pretty great.

I think we should have a /blah/register_feed POST-based API endpoint that accepts feed data and stores a feed internally. This is dependent on ISSUE-#5.

So the idea is that, from the front end, you can press an 'ADD FEED' button and a modal pops open to accept a URL (technically a URI). When that input is accepted, an AJAX call is made against our feed register endpoint saying 'here is a feed plz store it.'

A bit of a side note about the two terms API and POST. In this context, API is referring to a web API - a collection of routes that correspond to 'resources' that can be created, read, updated, and deleted by sending JSON structured commands or representations of resources to those routes.

So, as an example, /houses/new can accept accept { 'house_type': 'bungalow' } as an argument and the web api will create a new house resource. When that resource is created an ID is assigned to it. So you can reference it by its ID. If you want to delete that bungalow entry then you can do something like /houses/delete/:id_here.

For the POST term, POST is an http verb. There are roughly five HTTP verbs and each describes the type of action that you're using HTTP for.

Hello world page

Hey @kyleady, can you see if you can get an index page up and running that displays the text 'hello world?'

Add a description of project to README

The current README is just what Rails spat out when we generated the project. We should draft a description of the project so that people know what it's aboot`.

RSS Reader Sprint #1

Summary of problem:

RSS, or rich site summary, is a method for subscribing to a website and receiving its content. This epic is around creating the first set of features for uss_rss_reader - a reader that collects subscriptions and displays the feed of articles to a user.

The first set of goals are to accomplish collecting and displaying a simple list of articles from Slashdot. This involves constructing a model for feeds, an endpoint for registering a new feed, and everything needed on the front end for inputting a new feed and spitting out new content.

A few restrictions/assumptions/avoidances:

  • Only a single user for now. No multi-user support.
  • No reoccurring background scraping. A request is made against the feed per main index page load as opposed to a background worker going out and collecting a feeds articles.
  • No loading indicators for feed loading.
  • No security measures.
  • No convenienent UX elements for sorting or better navigating a feeds results.

Modal popup for registering a new feed

There should be an ADD FEED button on the main index page that registers a new feed. It should make an AJAX request to a register feed endpoint that contains a feed's URI.

More information here. Dependent on ISSUE-#8 and explained a bit better in ISSUE-#7.

Setup Bootstrap 4 for front end UI work

Bootstrap 4 is a collection of CSS classes and JavaScript libraries for creating a slick UI. Version four is an alpha quality product so it isn't exactly stable but because this is a small side project I'm going to say 'eh, screw it.' If we have too much trouble with bugs then going to v3 shouldn't be too big of a deal.

We need to setup Bootstrap so that our ERB templates can use those CSS classes and JavaScript. There are multiple ways to set this up but https://rails-assets.org/#/ looks pretty promising.

https://rails-assets.org/#/components/bootstrap

RSS reader practice

Grab SMBC's RSS feed and parse using raw Ruby.

Put test script in scratch directory. Titled rss_feed_smbc_scratch.rb.

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.