![]() ![]() Then configure your database in config/dev.exs and run: We are almost there! The following steps are missing: When it's done, it will ask us if we want it to install our dependencies for us. We can git init our repository, and immediately add and commit all that hasn't been marked ignored. Phoenix promotes the usage of git as version control software: among the generated files we find a. Phoenix generates the directory structure and all the files we will need for our application. To learn more about mix phx.new you can read the Mix Tasks Guide. If our application will not require this component we can skip this dependency by passing the -no-ecto flag to mix phx.new. Assuming that the name of our application is hello, let's run the following command: $ mix phx.new helloĪ note about Ecto: Ecto allows our Phoenix application to communicate with a data store, such as PostgreSQL, MySQL, and others. Phoenix will accept either an absolute or relative path for the directory of our new project. ![]() We can run mix phx.new from any directory in order to bootstrap our Phoenix application. By installing any necessary dependencies beforehand, we'll be able to get our application up and running smoothly. Let's get a Phoenix application up and running as quickly as possible.īefore we begin, please take a minute to read the Installation Guide. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |