Git Product home page Git Product logo

addon-export-csv's Introduction

addon-export-csv

Export your domains in CSV format with this simple add-on.

Setup

  1. Clone the repository
git clone [email protected]:aetrion/addon-export-csv.git
  1. Install the dependencies
bundle install

Setup the OAuth application

You will need to configure an OAuth application on your DNSimple account so the add-on authentication can function properly.

  1. From your account's settings choose Applications. Select the Developer applications tab and click on New application. This is the information you need to input:

    • Application name: CSV Export Add-on
    • Homepage URL: https://localhost:5000
    • Authorization Callback URL: http://localhost:5000/callback
  2. Once you have created the application make sure to copy the Client ID and the Client Secret as you will need them for the next step.

Setup environment variables

From the add-on project home create a .env file. This file is in the .gitignore file each one of us can have a different one. You will need the following environment variables there:

export DNSIMPLE_BASE_URL="https://api.sandbox.dnsimple.com"
export CLIENT_ID="xxxx"
export CLIENT_SECRET="xxxx"

Setup the host name for your development environment

WARNING: This step is only required if you want to test the add-on against your local development environment of the DNSimple app. If you are using other environment (like Staging or Sandbox) instead of your development environment this step is not required.

There are certain restrictions about how the DNSimple API works in the development environment. Because of those restrictions you will have to set up custom hosts for the add-on to work:

127.0.0.1  dev.dnsimple.com
127.0.0.1  api.dev.dnsimple.com

Running the server

The project has a Procfile for Heroku to run it. You can also use Foreman to run the server:

foreman start

Running the tests

bundle exec rake

or

bundle exec rspec

addon-export-csv's People

Contributors

jacegu avatar sbastn avatar weppos 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.