auth0/micropurchase

Name: micropurchase

Owner: Auth0

Description: 18F's micro-purchase threshold experiment management app.

Created: 2015-11-16 19:19:53.0

Updated: 2016-09-11 09:07:36.0

Pushed: 2015-11-16 18:54:20.0

Homepage: https://18f.gsa.gov/2015/10/13/open-source-micropurchasing/

Size: 1544

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Code Climate Test Coverage

Micropurchase

This app will be used to manage bids for 18F's micro-purchase threshold experiment. Vendors will be able to view open issues and bid on them, given they have GitHub accounts and are registered on SAM.gov.

This is a Ruby/Rails application using ActiveRecord and PostgreSQL.

Local Development

The application is running Ruby 2.2.3 and Rails 4.2.4. Libraries are all available via gems.

Testing
le exec rspec

or

 spec
Deployment

This application is deployed on the cloud.gov PaaS which runs on Cloud Foundry. The following instructions are 18F-specific, but could easily be adapted for other Cloud Foundry instances or other web hosts.

Create the app (it's ok if the deploy fails):

 push

Create the database service:

 create-service rds shared-psql micropurchase

Set environment variables with cf set-env:

 set-env micropurchase MPT_3500_GITHUB_KEY [the key]
 set-env micropurchase MPT_3500_GITHUB_SECRET [the secret]

Set up the database:

-ssh
undle exec rake db:migrate
undle exec rake db:seed

Restage the app:

estage micropurchase
Manual Deployment
ush
Automated Deployment

Pull requests merged into the master branch will be automatically deployed to https://micropurchase.18f.gov.

Public domain

This project is in the worldwide public domain. As stated in CONTRIBUTING:

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.