Interactive run the project
iex -S mix {project name}
recompile
recompile
inside iex
new project (make project directory with relevant components)
mix new {project name}
Install Link
mix archive.install hex phx_new 1.6.16
Start a project of Phoenix
mix phx.new {name of project}
Connect to postgresl
mix ecto.create
{project name} - config - dev.exs
username
and password
at the bottom of config file.(Model) Link schema to DB
mix ecto.migrate
mix ecto.gen.migration {add_accounts}
mix ecto.migrate
Start a Phoenix server
mix phx.server
{project name}-web-templates-page-index.html.eex
mix ecto.drop
: it deletes the whole DB and ectomix deps.update phoenix