Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Hello Domains, the Hello World for the DNSimple API, implemented in Elixir & Phoenix

Notifications You must be signed in to change notification settings

dnsimple/hello-domains-phoenix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello Domains

DNSimple Oauth application

First, you need to create the OAuth application in your DNSimple account. Go to your Account page and click on the Applications tab. Once you are there, click on the Developer applications tab and add a New application. You will need to provide an application name (something like Hello Domains Phoenix will work) as well as a homepage URL (any HTTPS URL will do). For the authorization callback, enter http://localhost:4000/dnsimple/callback. Once you've created the OAuth application on the DNSimple site, you will see Client ID and Client Secret values on the next page. You will need to copy these two values into your local configuration as described below.

Configuration

Create a file called config/dev.secret.exs and add the following, replacing client_id and client_secret with the values from the OAuth application you added:

use Mix.Config

config :hello_domains,
  dnsimple_client_id: "client_id",
  dnsimple_client_secret: "client_secret"

Start the Hello Domains app

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with npm install

Now that the application is configured, start Phoenix endpoint with mix phoenix.server

Now you can visit localhost:4000 from your browser.

Testing

To run the tests, run mix test.

About

Hello Domains, the Hello World for the DNSimple API, implemented in Elixir & Phoenix

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published