▸ to use your app for API purposes only, pass in —no-html flag ▸ edit config with db username and password ▸ mix ecto.create ▸ mix phoenix.server createdb meetup_example createuser ecto —pwprompt make sure we can login with that user psql meetup_example --user ecto explicit path vs in your directory edit with db info we use the ecto.create to compile run server
Controllers ▸ Views ▸ Tests ▸ mix test Let’s take a look at what we get with our routes, our basic gets scoped through our index and an api pipeline. First time we run our tests, we compile these files, we should see an error because we haven’t set up our test repo. createdb {db test name} remove username and password config/test.exs check out the basic test infrastructure we get, so awesome!
Name} {db_table_name} {table_options} ▸ mix phoenix.gen.html ▸ mix phoenix.gen.json We can manually add controllers and actions associated, from our command line or we can use these generators and they give us a LOT
Pry ▸ iex -S mix test ▸ require IEx && place in file IEx.pry We use ex_machina to create some factory data structures we have access to pry and allowing us to stop our server and debug