Initial Setup
Get Phoenix installed and create your first web application. This guide walks you through installation and building your first Phoenix app.
π― What You’ll Accomplish
By the end of this tutorial, you’ll have:
- β Elixir and Phoenix installed
- β Your first Phoenix project created
- β Development server running
π Prerequisites
- Elixir 1.14 or later
- PostgreSQL installed
- Node.js (for asset compilation)
πΎ Step 1: Install Phoenix
mix archive.install hex phx_newπ Step 2: Create Your First Project
mix phx.new myapp
cd myappπ§ Step 3: Configure Database
Edit config/dev.exs and update database credentials if needed.
Create database:
mix ecto.createπ Step 4: Start the Server
mix phx.serverVisit http://localhost:4000 to see your Phoenix app.
β Verification Checklist
Before moving forward, verify:
- Phoenix installed successfully
- Project created without errors
- Database created
- Server runs and loads in browser
π You’re Done!
You’ve successfully installed Phoenix and created your first web application.
π What’s Next?
Quick learner: Elixir Phoenix Quick Start
Code-first learner: Elixir Phoenix By Example
Last updated