lao9 / hot-reads

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hot Links

Setup

HotLinks can be set up easily.

  1. Clone done this repo.
  2. Bundle
  3. rake db:setup
  4. To run the test suite, rspec

Using the app

HotLinks is a companion app to URLockbox, https://loliveri-hotreads.herokuapp.com, which compiles all read links across users.

screen shot 2017-07-27 at 6 47 58 pm

API

GET /api/v1/links

Response: [{ "url":"http://google.com" }]

Returns the top 10 links (most popular in the past 24 hours)

screen shot 2017-07-27 at 6 48 11 pm

POST /api/v1/links

Request: link: { url: "http://google.com" } Response: 201

About


Languages

Language:JavaScript 88.9%Language:Ruby 9.6%Language:HTML 1.3%Language:CSS 0.2%