holsee / phoenix_takes_flight

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Phoenix Takes Flight - Chat

Set Up

  1. $ git clone git@github.com:chrismccord/phoenix_takes_flight.git chat
  2. $ cd chat
  3. $ mix deps.get
  4. $ npm install
  5. Configure your postgres credentials in dev.exs and test.exs
# Configure your database
config :chat, Chat.Repo,
  adapter: Ecto.Adapters.Postgres,
  username: "postgres",
  password: "postgres",
  database: "chat_dev"
  1. Create your dev and test database $ mix ecto.create
  2. Run the migrations $ mix ecto.migrate
  3. Start Phoenix endpoint with $ mix phoenix.server

Now you can visit localhost:4000 from your browser, and if you receive the following output you're all set!

$ mix phoenix.server
[info] Running Chat.Endpoint with Cowboy on port 4000 (http)
19 Apr 22:02:20 - info: compiled 4 files into 2 files in 537ms

About


Languages

Language:CSS 91.1%Language:Elixir 8.1%Language:JavaScript 0.8%