Setup notes

 

  • Elixir 1.12.2
    elixir -v

  • Erlang/OTP 24
    elixir -v

  • PostgresQL 12.9
    psql --version

  • Node v16.13.1
    node --version

  • Phoenix installer v1.6.6
    mix phx.new --v

 

mix phx.new hello2

cd hello2/config

nano dev.exs

< set username to “postgres” and set password >

sudo systemctl status postgresql.service

sudo systemctl restart postgresql.service [if necessary]

sudo -u postgres psql template1

template1=# ALTER USER postgres with encrypted password ‘<password>’;

template1=# \q

cd ..

mix ecto.create

mix phx.server