GithubHelp home page GithubHelp logo

instarails's Introduction

Build Status

Coverage Status

InstaRails

screen shot 2018-02-26 at 18 45 05

As part of the Makers Academy syllabus, I was asked to produce an Instagram clone using Ruby on Rails.

My solution, instaRails, allows users to sign up/in/out, submit posts and comment/like other users' posts.

Getting Started

Prerequisites

Ruby & RVM

It's a Ruby project, so it's probably for the best if you you have Ruby installed. If you're on Linux or a Mac then you're probably good to go but otherwise download and install it from here.

Bundler

The easiest way to get started is to install all of the requisite gems and dependencies via Bundler. If you've not used Bundler before, run the following at the command line:

gem install bundler

ImageMagick

instaRails uses ImageMagick to magically resize images uploaded by users as posts or profile pictures. To install ImageMagick, simply enter the following at the command line:

brew install imagemagick

Installing

Firstly, download a copy of this repository by running the following command:

git clone https://github.com/bwk103/instaRails.git

Next, install the necessary gems using the following commands:

bundle update

bundle install

To create the necessary database tables, run the following command:

rails db:migrate

If you want to seed the databse with some example users (images not included in github repo), run

rails db:seed

To run instaRails on a local server run the following command and navigate to localhost + 'YOUR_PORT_NUMBER'.

rails server

By default the application will be run on localhost:3000.

Using instaRails

Create an account, add a post and enjoy the lack of FOMO that comes with a single-person version of Instagram.

screen shot 2018-02-26 at 18 39 26

screen shot 2018-02-26 at 18 41 58

screen shot 2018-02-26 at 18 47 53

Running the tests

It couldn't be any simpler to run my tests. Simply enter the following command, sit back, and enjoy all the green text.

rails test

If, for some reason, you don't have the time to wait for 202 assertions to complete, you can also choose to run the model, controller and integration tests separately by running the following commands:

rails test:models

rails test:controllers

rails test:integration

Built With

Author

Ben Kielty

Acknowledgments

instarails's People

Contributors

bwk103 avatar

Watchers

James Cloos 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.