GithubHelp home page GithubHelp logo

isabella232 / hello-domains-phoenix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dnsimple/hello-domains-phoenix

0.0 0.0 0.0 69 KB

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

JavaScript 10.26% Elixir 86.86% CSS 0.11% HTML 2.77%

hello-domains-phoenix's Introduction

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.

hello-domains-phoenix's People

Contributors

aeden avatar jacegu avatar jcaudle avatar olemchls avatar sbastn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.