O'Reilly logo

Elixir Cookbook by Paulo A Pereira

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a simple application

In this recipe, we will be using Mix to create a new application.

How to do it…

To create a new Elixir application, follow these steps:

  1. In a command-line session, enter mix help to see a list of available tasks:
    > mix help
    

    Here is what the screen will look like:

    How to do it…
  2. To generate a new application, type mix new simple_app:
    > mix new simple_app
    

    What happens next is shown in the following screenshot:

    How to do it…
  3. Inside the simple_app directory, the generated application is ready to be started. Run iex –S mix to start the application and verify ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required