$ git clone git@github.com:chrismccord/phoenix_takes_flight.git chat
$ cd chat
$ mix deps.get
$ npm install
- Configure your postgres credentials in
dev.exs
andtest.exs
# Configure your database
config :chat, Chat.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "chat_dev"
- Create your dev and test database
$ mix ecto.create
- Run the migrations
$ mix ecto.migrate
- 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