Developed live during a Meetup of Elixir Asturias
-
Elixir on your machine:
- Mac:
brew install elixir
(using Homebrew) - Windows: Download the installer
- Unix: Check your version and follow the official steps
- Mac:
-
Phoenix framework installed:
mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez
-
PostgreSQL (Database Server) installed (to save messages):
- Mac: Download Postgres.app
- Windows & Unix: Download it
- Install dependencies with
mix deps.get
- Check Postgres credentials at
config
directory, create and migrate your database withmix ecto.create && mix ecto.migrate
- Install Node.js dependencies with
cd assets && npm install
- Start Phoenix endpoint with
mix phx.server
You can visit localhost:4000 from your browser and open the Chat web. It is recommended open the app in two separate browser windows to try it (if your machine only has one browser try using an "incognito" tab).