Skip to content

UserNotes:chief

Christopher "Chief" Najewicz edited this page Apr 30, 2017 · 14 revisions

Developing cmd.io locally

Developer Accounts You Will Need

  • A test auth0 account
  • An OAuth integration w/ GitHub
  • A test stripe account

Software Requirements

  • Moby Docker for OSX / Linux
  • golang
  • glide, brew install glide
  • make if you don't have it

Setup

Auth0

Authentication is done through auth0. To develop locally, you will need to create a mock app in the auth0 dashboard.

The cmd config file should look something like this for auth0:

[auth0]
domain = "<auth0username>.auth0.com"
callback_url = "http://localhost:8080/_auth/callback"
logout_url = "http://localhost:8080/_auth/logout"
client_id = "Jna0dfj2nmnmdfap2mplaal2m2n2okljn22"
client_secret = "tzviIHfvUu1W4K9NWaBsadfasdf_asdfdfdfdfdaa2Oht_3LClrbQyrta8V1FS5a"
api_token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ik1qUXhSRUZDTmpWR09EVkVOelkxTXpCRlF6UkVRVU16TjBJd01UazBOVEV4UkRjM1JVSTFNUSJ9.eyJpc3MiOiJodHRwczovL2NoaWVmeS5dddddasdfasdfaf4a3N3T0VlY29mTnNqVUQ1SWdxVHpPZDZQbGJAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vY2hpZWZ5LmF1dGgwLmNvbS9hcGkvdjIvIiwiZXhwIjoxNDkzNTkxMzY0LCJpYXQiOjE0OTM1MDQ5NjQsInNjb3BlIjoicmVhZDpjbGllbnRfZ3JhbnRzIGNyZWF0ZTpjbGllbnRfZ3JhbnRzIGRlbGV0ZTpjbGllbnRfZ3JhbnRzIHVwZGF0ZTpjbGllbnRfZ3JhbnRzIHJlYWQ6dXNlcnMgdXBkYXRlOnVzZXJzIGRlbGV0ZTp1c2VycyBjcmVhdGU6dXNlcnMgcmVhZDp1c2Vyc19hcHBfbWV0YWRhdGEgdXBkYXRlOnVzZXJzX2FwcF9tZXRhZGF0YSBkZWxldGU6dXNlcnNfYXBwX21ldGFkYXRhIGNyZWF0ZTp1c2Vyc19hcHBfbWV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