Mix Elixir project with Ecto

Mahabub Islam Prio
Aug 28, 2018 · 2 min read
Taken from unsplash

In this post I am going to share how to make a Mix project with Elixir and Ecto. I was using Elixir 1.7.3 while making this project.

For this section, I started with an empty template of the mix project but its a template. More about this can be found over here.

After installing it I pulled a template form hex,

and after this run command to have a mix project with Ecto,

Now I have to open the project and update the credentials over the config/dev.exs

after we can run the command over terminal,

It will create a database with the project name. And will initialize the Repo.

After this, I tried to create Migration and generate it.

And write the migration, into /repo/migration/migration_file_name

And run, mix ecto.migrate

After this to spin up a CRUD app to check the power of the Ecto I created,

todo_list/task.ex over the Module directory.

Now, we can boot up iex -S mix and run,

And this is a small CRUD based todolist made with mix project.

The github link of the full code is here: Link Of the Project.

Mahabub Islam Prio

Written by

Ruby On Rails, Elixir, Javascript developer.