-
Generate keys:
openssl genrsa -out privatekey.pem 1024 openssl req -new -x509 -key privatekey.pem -out publickey.cer -days 1825 openssl pkcs12 -export -out public_privatekey.pfx -inkey privatekey.pem -in publickey.cer pbcopy < publickey.cer
-
Create a demo account via the xero interface (Create demo account)[https://my.xero.com/!xkcD/Dashboard]
-
Goto the xero dev console (Xero Dev - Applications)[https://app.xero.com/Application/List]
-
Create a new private application.
-
Select the demo account
-
Paste in the public key
-
Add in the following env vars to the stack
-
XERO_API_KEY : required
-
XERO_SECRET : required
-
XERO_PRIVATE_KEY : required
pbcopy < privatekey.pem
-
REDIS_URL : required
-
SECRET_KEY_BASE : required
-
POSTGRESQL_DATABASE : required
-
POSTGRESQL_ADDRESS : required
-
POSTGRESQL_USERNAME : required
-
POSTGRESQL_PASSWORD : required
Start Redis: redis-server /usr/local/etc/redis.conf Start Clockwork: bundle exec clockwork clock.rb