Skip to content

balanced/rentmybikes-rails

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

rentmybike

Code Climate

Example marketplace implementation of Balanced in Ruby on Rails.

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

If you'd like to deploy this application. signup for a Heroku account, if you don't already have one, and install Toolbelt.

Live Demo

http://rentmybike-rails.herokuapp.com

Resources

Install

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

Configure

Create an .env file for the app by renaming .env.sample to .env

Edit rentmybike/config/initializers/devise.rb:

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

Edit 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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published