Skip to content

EsamAl-Dabagh/instagram-challenge

 
 

Repository files navigation

Instagram Challenge

The Mission

Build Instagram using Rails.

How to Set-up

Clone this repo and navigate to the directory:

git clone https://github.com/EsamAl-Dabagh/instagram-challenge.git
cd instagram-challenge

Install all the relevant dependencies: bundle install

Set-up the database: rake db:drop db:create db:migrate db:seed

How to Use

rails server

Then navigate to http://localhost:3000/ in your browser.

Browse a timeline of posts:

Imgur

Click on an author of a post to see all posts by that author:

Imgur

User can sign-up:

Imgur

A previously registered user can login:

Imgur

User Stories

As a user
So that I can use the service
I want to be able to sign up
As a user
So that I can share my images
I want to be able to post a picture
As a user
So that I can keep up-to-date
I want to be see pictures in reverse chronological order
As a user
So that I can quickly give kudos for a picture
I want to be able to like a picture

Domain Model

                   ╔═════════════════╗
                   ║   CONTROLLERS   ║
╔════════╗         ║                 ║          ╔═══════╗
║ Routes ║ ------> ║     Users       ║ -------> ║ Views ║
╚════════╝         ║     Posts       ║          ╚═══════╝
                   ║     Likes       ║
                   ╚═════════════════╝
                            |
                            |
                      ╔════════════╗
                      ║   MODELS   ║
                      ║            ║
                      ║   User     ║
                      ║   Post     ║
                      ║   Like     ║
                      ╚════════════╝

Testing

Run tests from the command line using rspec.

  • TDD'd using RSpec and Capybara.
  • Coverage = 100% (provided by SimpleCov)

Imgur

About

Rebuild Instagram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 76.3%
  • HTML 18.1%
  • CSS 3.8%
  • JavaScript 1.3%
  • CoffeeScript 0.5%