This is a full working example project to create a DNSimple addon with Hanami.
- Ruby 2.3+ (with OpenSSL)
- PostgreSQL 9.4+
- A DNSimple sandbox account
- A DNSimple OAuth Application on sandbox
The OAuth Application has a Client ID
and a Client Secret
that you should use to setup this project.
To setup this project, please use the following commands:
➜ git clone https://github.com/dnsimple/hello-domains-hanami.git
➜ cd hello-domains-hanami
➜ ./bin/setup [DNSIMPLE_CLIENT_ID] [DNSIMPLE_CLIENT_SECRET]
➜ bundle exec hanami server # visit http://localhost:2300
By default, Hello Domains targets DNSimple Sandbox.
If you need, for development purposes, to interact with a different DNSimple stage, please edit the following env vars in .env.development
DNSIMPLE_BASE_URL
DNSIMPLE_AUTHORIZE_URL
DNSIMPLE_TOKEN_URL
To run the tests please run:
➜ bundle exec rake
Copyright (c) 2017 Aetrion LLC.