Pending a mock, you'll need to have access to a Lightning Charge installation.
Install RVM (Ruby Version Manager) and rvm install
the right Ruby version. Install NVM (Node Version Manager) and nvm install
the right NodeJS version, see {engines: {node: ...}}
in package.json.
If you're working on the client side javascript, install React Developer Tools and Redux Developer Tools for Chrome.
If you're working on the Rails application, you can trigger system notifications on macOS during test runs:
brew install terminal-notifier
If you're working on the AWS deployment script, see instructions for programatic deploys.
Clone this repo and create a file .env
with:
LIGHTNING_CHARGE_URL=...
LIGHTNING_CHARGE_API_TOKEN=...
FROM_EMAIL='"My Matreon" <[email protected]>'
Install dependencies, create database and start server:
gem install foreman
bundle install --without production
rake db:migrate
foreman start -f Procfile.dev-server
Use Guard to automatically run tests each time you change something.
To trigger invoice emails (delivered to tmp/mails/[address]
), run: rake invoices:process