ReCharge Checkout API web interface for Shopify
Updates Prepaid Subscriptions through easy-to-use GUI. Features Administrative User functionality, asynchronous API -> database syncing via batching, and real time background job updates via websockets (Action Cable)
First, make sure you have these dependencies installed on your local machine
- Ruby 2.6.0
- postgresql
- nodejs
- rvm (suggested)
- Redis
- Bundler
Next, clone this repository onto your local machine
git clone https://github.com/Nevillealee/cs_prepaid_app.git
Change into newly created directory
cd cs_prepaid_app
Install gems
bundle
Create env file (in app root dir) with DATABASE_URL, DEFAULT_MASTER_USER_EMAIL, RECHARGE_TOKEN
touch .env
Create database
rake db:create
Load schema file (dont run migrations)
rake db:schema:load
Edit db/seeds.rb
(linux) sudo nano db/seeds.rb or edit in your IDE
Seed the database
rake db:seed
Pull data from ReCharge
rake batch_mass_request
Upsert data into Postgres
rake batch_mass_upsert
In a new terminal
rails s
Then in a second terminal tab
QUEUE=* rake resque:work
Last, leave a third terminal open for rake task commands
- v1.0.0-beta
- Work in progress
- Neville Lee - https://github.com/nevillealee/cs_prepaid_app
- David Kim - https://github.com/dhkim1211
- Fork it (https://github.com/yourname/yourproject/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request