PostApp

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Usage

  • Run mix run priv/repo/seeds.exs to populate the database with 2 posts
  • Navigate to localhost:4000/post/:id to access the post page and add comments
  • Test the real-time comments update by opening multiple tabs for the same post

Learn more