Quick Start

The fastest and easiest way to view this app is by navigating to the deployed version here:
https://video-retention-viewer.herokuapp.com/videos/1

To access a chart for another video, just change the ID in the URL from 1 to the video of your choosing.

NOTE: Since the API is hosted on Heroku, its dyno may be asleep if not accessed for over an hour. If you experience this, it should speed up after the initial request.

Installing & Running Locally

  1. Clone or download the repo to your local machine.
    git clone https://github.com/dylankershaw/video-retention-viewer.git

  2. Install packages.
    bundle install

  3. Create, migrate, and seed database

    • Since the database is PostgreSQL, be sure to run Postgres first.
    • In the terminal:
      • rake db:create
      • rake db:migrate
      • rake db:seed
  4. Start the server.
    rails s

  5. Enjoy! And again, remember to access posts by navigating to the appropriate URL (i.e. http://localhost:3000/videos/1).