Comments (3)
Okay, I just deployed it to my EC2 instance
http://ec2-54-219-21-15.us-west-1.compute.amazonaws.com
To run integration testing against it, you can run
export BILLY_TEST_URL=http://ec2-54-219-21-15.us-west-1.compute.amazonaws.com
export BILLY_TEST_PROCESSOR_KEY=MY_SECRET_KEY_HERE
export BILLY_TEST_MARKETPLACE_URI=/v1/marketplaces/TEST-MP_MY_MARKETPLACE
nosetests billy/tests/integration
This could subscribe recurring charging to a new credit card.
from billy.
To deploy via Chef
Mainly reference to http://www.captnswing.net/2013/01/from-vagrant-to-ec2-with-knife-solo.html
Clone the billy project
git clone https://github.com/victorlin/billy.git
clone chef submodule
git submodule init
git submodule update
cd to the chef folder
cd billy/chef
install knife solo and ec2 plugins
gem install knife-ec2 knife-solo
create new ec2 instance, Ubuntu 12.04.1 LTS (Precise Pangolin)
export AWS_ACCESS_KEY=YOUR_KEY
export AWS_SECRET_KEY=YOUR_SECRET_KEY
export EC2_REGION=us-west-1
export EC2_AVAILABILITY_ZONE=us-west-1c
knife ec2 server create -S <your_key_pair> -I ami-827252c7 -G default --flavor=m1.large
(find corresponding Ubuntu image id here http://cloud-images.ubuntu.com/releases/precise/release-20121218/)
prepare chef
knife prepare ec2-xx-xx-xx-xx.us-west-1.compute.amazonaws.com
copy and modify the node configuration file
cp nodes/ec2.json.example nodes/ec2-xx-xx-xx-xx.us-west-1.compute.amazonaws.com.json
vim nodes/ec2-xx-xx-xx-xx.us-west-1.compute.amazonaws.com.json
Okay! Finally, let's cook
knife cook ec2-xx-xx-xx-xx.us-west-1.compute.amazonaws.com
and run the integration test against it
export BILLY_TEST_URL=http://ec2-xx-xx-xx-xx.us-west-1.compute.amazonaws.com
export BILLY_TEST_PROCESSOR_KEY=MY_SECRET_KEY_HERE
export BILLY_TEST_MARKETPLACE_URI=/v1/marketplaces/TEST-MP_MY_MARKETPLACE
cd ..
nosetests billy/tests/integration
done!
from billy.
Amazing work @victorlin
from billy.
Related Issues (20)
- Make soft description can be changed by user
- Adjustments HOT 12
- Dogfooding HOT 6
- Generate End-of-Year invoice report for marketplaces
- Figure out a way to make Balanced works with Billy
- Reference Moonpig - A Billing System That Doesn't Suck HOT 1
- Package Billy using Omnibus HOT 2
- Will Billy be integrated into the Balanced dashboard? HOT 1
- appears_on_statement_as parameter for Billy transactions HOT 3
- Put micro-deposit verification logic into Billy
- PHP Client
- Use v1.1 Balanced API instead of v1.0
- Allow 127.0.0.1 and localhost to call API via XHR
- Change debit.succeeded event HOT 5
- Subscription with items
- Allow orders to be used from within Billy
- SSL Cert has expired HOT 5
- Add new status for subscriptions
- Send event when subscription is canceled
- Balanced Payments is shutting down
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from billy.