Skip to content

brancusi/xero_sync

Repository files navigation

Setup

  1. 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
  2. Create a demo account via the xero interface (Create demo account)[https://my.xero.com/!xkcD/Dashboard]

  3. Goto the xero dev console (Xero Dev - Applications)[https://app.xero.com/Application/List]

  4. Create a new private application.

  5. Select the demo account

  6. Paste in the public key

  7. Add in the following env vars to the stack

  8. XERO_API_KEY : required

  9. XERO_SECRET : required

  10. XERO_PRIVATE_KEY : required pbcopy < privatekey.pem

  11. REDIS_URL : required

  12. SECRET_KEY_BASE : required

  13. POSTGRESQL_DATABASE : required

  14. POSTGRESQL_ADDRESS : required

  15. POSTGRESQL_USERNAME : required

  16. POSTGRESQL_PASSWORD : required

Dev

Start Redis: redis-server /usr/local/etc/redis.conf Start Clockwork: bundle exec clockwork clock.rb

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages