Skip to content

Instantly share code, notes, and snippets.

@toraritte
Last active June 27, 2018 04:41
Show Gist options
  • Select an option

  • Save toraritte/fd561533f611231c7eaec97c2b899663 to your computer and use it in GitHub Desktop.

Select an option

Save toraritte/fd561533f611231c7eaec97c2b899663 to your computer and use it in GitHub Desktop.
Set up basic Phoenix app for testing IEx.pry
$ mix phx.new puffin
$ cd puffin
$ mix phx.gen.html Accounts User users name:string username:string:unique
$ sed -i '/ get/i \ resources "/users", UserController' lib/puffin_web/router.ex
$ mix ecto.create
$ mix ecto.migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment