GithubHelp home page GithubHelp logo

steveklabnik / rentmybikes-rails Goto Github PK

View Code? Open in Web Editor NEW

This project forked from balanced/rentmybikes-rails

0.0 2.0 0.0 735 KB

A fully functional, deployable marketplace implementation using Balanced API for Rails

Ruby 78.19% JavaScript 21.81%

rentmybikes-rails's Introduction

rentmybike

Reference implementation of Balanced for collecting and charging credit cards, and collecting and crediting bank accounts.

Uses jQuery, Less, Ruby(>=1.9.3), Rails (>= 4.0.0.rc1), Devise, PosgreSQL, and Bootstrap.

If you'd like to deploy signup for a Heroku account if you dont already have one and install [Toolbelt] (https://toolbelt.heroku.com/).

Resources

Install

$ git clone https://github.com/balanced/rentmybikes-rails.git
$ cd rentmybikes
$ bundle install
$ rake db:migrate
$ rake db:seed (if you want to seed database)

Configure

Edit the following in rentmybike/config/initializers/app_constants.rb:

Example:

BALANCED_SECRET = 'your-balanced-secret'

Edit the following in rentmybike/config/initializers/devise.rb:

  • Configure the e-mail address which will be shown in Devise::Mailer

Edit the following in rentmybike/config/database.yml:

  • Set all necessary fields for your database.

Example:

common: &common
adapter: postgresql
username:
password:
host: localhost
timeout: 5000
development:
<<: *common
database: rentmybike_dev
<<: *common
database: rentmybike_test

Run

$ foreman start

or if you dont have [Toolbelt] (https://toolbelt.heroku.com/)

$ rails s

Deploy

$ cd rentmybikes
$ heroku create
$ git push origin heroku
$ heroku ps:scale web=1
$ heroku open

rentmybikes-rails's People

Contributors

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