![]() ![]() Next, we have to configure our database, locate the config/dev.exs, and After fetching the dependencies, we still have a couple of steps to get our application up and running.įirst of all, we have to enter our newly created app directory: cd todo_app When prompted to Fetch and install dependencies?, select yes. Here, todo is the name of the application we wish to create. To install PostgreSQL, refer to the docs or you can visit this tutorial to install and run using Docker: mix phx.new todo_app The database of choice for this lesson is PostgreSQL, the standard selection for Phoenix apps. Creating a Phoenix applicationīy providing the -no-ecto flag with the phx.new command, a Phoenix application can be created without a database, but because we need data persistence, we’ll be using a database instead. It would be unimaginable to use Elixir without a tool like Mix. Similar to other mainstream programming languages, Elixir provides the Mix build tool to help with compiling, creating, and testing applications, as well as installing, updating, and uninstalling dependencies. ![]() The command above instructs Mix to install the Phoenix framework. Run the following command to install Phoenix on your system: mix archive.install hex phx_new To install Elixir on your system, visit the Elixir docs and follow the installation instruction for your operating system.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |