Skip to content

Caitlin-cooling/instagram-challenge

 
 

Repository files navigation

Build Status

Instagram Challenge

This challenge is an Instagram clone using Ruby on Rails.

Using the app

This app is also hosted on Heroku and can be found here.

You will then be asked to create an account with an avatar or log in if you have one already. From there you will see your feed with all posts.

Alt text

Click new post to create a post of your own. A user can like or comment on pictures. The like amount and comments will display on each post. You can edit or delete your own posts.

A user has a profile page that will show their own posts that they can click to see more info about. This page will also show their avatar.

A user can edit the details of their account, and delete their account.

Contributing

  1. git clone https://github.com/Caitlin-cooling/instagram-challenge
  2. cd instagram-challenge
  3. bundle install
  4. rails db:migrate
  5. rails s
  6. localhost:3000

Tests

The tests for this repo are written using rspec and capybara. To run the tests, run rspec from the command line. Test coverage is calculated using Simplecov.

alt text

Technologies Used

  • Ruby on Rails - the web framework
  • ActiveRecord - the ORM (part of rails)
  • Rspec and Capybara - the testing frameworks
  • Travis - CI
  • Heroku - CD
  • Devise - user authentication
  • Acts_as_votable gem - likes
  • Acts_as_commentable gem - comments

My Approach to Solving the Problem

I used TDD and OOP principles when solving this problem. I practice "the rails way" including DRY and Convention over Configuration. I used gems that I had never used before such as Devise, Acts_as_votable and Acts_as_commentable for practice "not reinventing the wheel".

I kept the user in the forefront of my mind when completing this challenge, as a user of Instagram myself I wanted to create a as much of a smooth experience as possible.

Known Issues

  • Currently when a user deletes their account and they still have posts in the database, the feed will break. Please ensure that you delete your posts before you delete your account.
  • All pages are expecting a user to have an avatar, so please upload one when you sign up.

About

Rebuild Instagram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 74.4%
  • HTML 19.3%
  • CSS 4.1%
  • JavaScript 1.2%
  • CoffeeScript 1.0%