Batman is the main application for PromoExchange's promotional products auction platform. It houses product, auction, and user information.
** N.B. Windows development environment is not really supported **
The following installation links are for a Microsoft Windows Environment. N.B. These are untested as I do not have access to a Windows machine
- Git CLI Installation. This also includes a bash prompt.
- Github UI Installation. The official GIT github UI.
- Redis
- Ruby
- Postgres
- Bundler
- node N.B. Select 'include NPM' in the installation options.
- Bower
git clone git@github.com:PromoExchange/batman.git
bundle install
bower install
- Take a copy of the heroku database and install locally. See below for instructions.
-
heroku pg:backups capture --app px-batman
-
heroku pg:backups download --app px-batman
(to latest.dump). NOTE: Rename or delete the previously downloadedlatest.dump
file. -
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U postgres -d batman_dev latest.dump
See: Heroku export/import
- Backup target:
heroku pg:backups capture -a <preview app>
- Copy Database:
heroku pg:copy px-batman-stage::HEROKU_POSTGRESQL_PINK_URL HEROKU_POSTGRESQL_WHITE_URL -a <preview app>
- Ensure postgres and redis-server are running
bundle exec rake resque:work QUEUE=*
in one commandbundle exec rails s
in another command- Navigate to
http://localhost:3000
in your browser
- Sign in as spree@example.com/spree123
- Navigate to
http://localhost:3000/admin
- Under general configuration set the site url to
http://localhost:3000
bundle exec rspec
from the root directory of the application
- Documentation is available via the project wiki
Open a bug on Pivotal Tracker
- Fork repo
- Submit pull requests to the development branch
This application and all code herein belongs to Promobidz LLC.