Giter Club home page Giter Club logo

instagram-challenge's Introduction

Instagram Challenge

Use this app on heroku

Task:

Build an Instagram clone using rails. You'll need users who can post pictures, write comments on pictures and like a picture.

Breakdown of models:

  • User
  • Post
  • Comment
  • Like

Tools:

Testing: Rspec, Capybara, Shoulda, FactoryGirl

Code: Ruby on Rails

Other: Devise, Paperclip, PostgreSQL, AWS, HTML, CSS, Bootstrap

Testing:

comments

  • user must be logged in to create a comment
  • allows users to leave a comment
  • allows users to delete their own comments
  • users cannot delete others comments

likes

  • like count is displayed on posts
  • like count is increased by one when 'like' is clicked by user
  • users 'like' is removed if they click 'unlike'
  • likes can only be made by signed in users

posts

  • no posts have been added
    • should display a prompt to add a post
  • posts have been added
    • display posts
  • creating posts
    • user must be logged in to create a post
    • prompts user to fill out a form, then displays the new post
  • an invalid post
    • does not let you submit a blank post
  • images
    • lets user add images to post
  • viewing posts
    • lets a user view a post
  • editing posts
    • let a user edit a post
    • user can only edit their own posts
  • deleting posts
    • removes a post when a user clicks a delete link
    • user cannot delete another user's posts

User can sign in and out

  • user not signed in and on the homepage
    • should see a 'sign in' link and a 'sign up' link
    • should not see 'sign out' link
  • user signed in on the homepage
    • should see 'sign out' link
    • should not see a 'sign in' link and a 'sign up' link

Post

  • should have many comments
  • is not valid without user providing content

User

  • should have many liked_posts
  • has comments

Finished in 2.64 seconds (files took 3.41 seconds to load) 27 examples, 0 failures

instagram-challenge's People

Stargazers

 avatar

Watchers

 avatar  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.