Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.39 KB

README.md

File metadata and controls

27 lines (20 loc) · 1.39 KB

Elixir & Phoenix Chat Example

Developed live during a Meetup of Elixir Asturias

Getting Started

Prerequisities
  1. Elixir on your machine:

  2. Phoenix framework installed: mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez

  3. PostgreSQL (Database Server) installed (to save messages):

Running it!

  • Install dependencies with mix deps.get
  • Check Postgres credentials at config directory, create and migrate your database with mix 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).