Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

How can I run a Ruby project found on Github?

Writer Andrew Henderson

I want to run a project from github.

Here is the link. I used following command to download the project and it done successfully.

$ git clone git://

But I don't know how to run the project.Is it run from rails console? I'm using ruby on rails 3.2

0

3 Answers

What to do with a Ruby git repo depends on what is in it, and usually described how to use it by the README.

In this case, the repo is for a gem, and it does not contain any Rails server examples or Rails projects.

Unless you have a specific need to use the github version, you should just use the version from rubygems.org

Ignore your cloned item for now, and add the gem to your own Rails project's Gemfile

gem "amaze_sns", "~> 1.3.0"

If you want to use this service as part of a Rails application, and don't yet have one, then you will need to create a new one. Other repos may contain example applications to get you started quickly - just not this one.

When you run bundle install or bundle update, Bundler will sort out a suitable copy of the gem for you.

The repo's examples here give some idea of how to use the gem in practice. You may be able to type that code into the Rails console, if you first do

gem install amaze_sns

to add the gem to your system Ruby (you probably don't need a full project started to do that testing)

4

After you clone the project into your local system. You should enter into the project folder and have to give.

rails s to start the server it will start with 3000 port..

eg:-In console cd Amazon-SNS-Ruby

before start the server give

 bundle install rake db:create rake db:migrate rails s

go to browser give localhost:3000 to access the home page

if you like to run with some respective port give

rails s -p 3005
1

The GitHub project will be cloned into your current working directory (the directory you were in when you executed the command).

Change directory into the cloned project directory and start the rails server with

Rails s

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy