Skip to content

HKCodeCamp/bartr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7b88c76 · Apr 11, 2013
Apr 11, 2013
Feb 20, 2013
Oct 26, 2012
Oct 12, 2012
Oct 12, 2012
Oct 12, 2012
Oct 10, 2012
Oct 12, 2012
Oct 12, 2012
Oct 13, 2012
Oct 26, 2012
Oct 12, 2012
Oct 12, 2012
Oct 12, 2012
Oct 23, 2012
Oct 23, 2012
Oct 23, 2012
Oct 13, 2012
Oct 10, 2012
Oct 11, 2012
Oct 23, 2012
Oct 10, 2012

Repository files navigation

Bartr

"Geospatial web fancy buy stuff thing. "

Demo Site

bartr-app.herokuapp.com

Prerequiste

Please make sure you have following software installed before proceed.

gem install vagrant

Setup

  1. Check out the project via git
git clone git://github.com/HKCodeCamp/bartr.git
  1. In the root folder of the project, run following commands to install dependencies:
gem install vagrant
  1. Start Vagrant
vagrant up
  1. SSH into VM
vagrant ssh

Setup inside VM

  • In the VM, change to app folder:
cd /vagrant
  • Install project dependencies
bundle install
  • Create Database
sudo su postgres  

createdb bartr_test   

createdb bartr_development  

(Ctrl-d)  

  • Setup App Setting

    • Copy config/application.default.yml to config/application.yml and fill in proper keys

    • (For Production ENV) heroku config: https://devcenter.heroku.com/articles/config-vars

    • heroku config:add HEROKU_API_KEY=xxxxx APP_NAME=yyyy ( for delayed_job worker )

  • Startup the server:

bundle exec foreman start

Verified if everything setup properly by open browser (on your host machine) and enter http://10.10.10.10:5000.
It should show the app website.

If everything worked properly, you can press Ctrl-C to exit foreman.

You may suspend the VM from your host machine via command:

vagrant suspend

For more details:

Documents

Team Members