Skip to content

Instantly share code, notes, and snippets.

@SophieDeBenedetto
Created November 21, 2018 12:04
Show Gist options
  • Select an option

  • Save SophieDeBenedetto/175764080437558cfaa4cce61d0000d8 to your computer and use it in GitHub Desktop.

Select an option

Save SophieDeBenedetto/175764080437558cfaa4cce61d0000d8 to your computer and use it in GitHub Desktop.
# lib/github_client/mock_server.ex
defmodule GithubClient.MockServer do
use GenServer
alias GithubClient.MockServer.GithubApiMockController
def init(args) do
{:ok, args}
end
def start_link(_) do
Plug.Adapters.Cowboy.http(GithubApiMockController, [], port: 8081)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment