GithubHelp home page GithubHelp logo

balanced / rentmybikes Goto Github PK

View Code? Open in Web Editor NEW
13.0 10.0 12.0 927 KB

premium bike rentals - sample marketplace application

Home Page: rentmybike.co

License: Other

Python 82.45% CSS 6.62% JavaScript 10.93%

rentmybikes's Introduction

rentmybike

Build Status

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

Uses jQuery, Less, Python (>= 2.7), SQLite, WTForms, 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/).

Install

$ git clone https://github.com/balanced/rentmybikes.git
$ cd rentmybikes
$ mkvirtualenv rentmybike
$ pip install -r requirements.txt

Configure

Edit the following in rentmybike/settings/default.py:

  • Set BALANCED_SECRET to your secret key. Get one from [Balanced] (https://www.balancedpayments.com/marketplaces/start) if you dont have one.
  • Set username, password and host of DB_URI for your database.
  • Set MAIL_SERVER, MAIL_USERNAME, MAIL_PASSWORD, MAIL_PORT for your mail server.

Optionally:

  • Set DOMAIN_URI to the domain where rentmybike will be deployed.

Here is an example:

DB_URI = 'postgresql://username:password@server/database'

BALANCED_SECRET = 'supersecret'

MAIL_DEBUG = True
MAIL_SERVER = 'smtp.mailgun.org'
MAIL_USERNAME = '[email protected]'
MAIL_PASSWORD = 'supersecret'
MAIL_PORT = 587

DOMAIN_URI = 'http://myapp.herokuapp.com'

Run

$ foreman start

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

$ ./run.py

Deploy

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

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.