Steps for Creating a Phoenix / Elixir Application

Feature thumb snip20190225 3

The following steps will get your Elixir / Phoenix application generated. This is a basic MVC application and uses Phoenix version 1.4.1 with Erlang 21, and Elixir 1.8.1.

Generate the application:

mix phx.new my_app_name

Notice the snake case naming convention with the generator.

Now switch into the newly generated application and create the Postgres database (I'm assuming you have postgres installed on your system with a username of postgres) with the command:

mix ecto.create

And now you can run the Phoenix server with the command:

mix phx.server

And it should start up properly and you can view the following default screen at localhost:4000: