Skip to content

Instantly share code, notes, and snippets.

@toraritte
Created June 27, 2018 04:42
Show Gist options
  • Select an option

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

Select an option

Save toraritte/983cc6a3e3f55527c15b5acbbbb50aaf to your computer and use it in GitHub Desktop.
Set up basic Phoenix app for testing IEx.pry via shell script
#!/bin/sh
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