SplitApp is a Phoenix Framework application for tracking expenses and splitting costs between users.
mix setup # Install dependencies, create database, run migrations, and build assets
mix deps.get # Install Elixir dependencies
mix ecto.setup # Create database, run migrations, and seed data
mix phx.server # Start Phoenix server (visit http://localhost:4000)
iex -S mix phx.server # Start Phoenix server with interactive Elixir shell
mix ecto.create # Create the database
mix ecto.migrate # Run pending migrations
mix ecto.reset # Drop, create, and migrate database
mix ecto.gen.migration NAME # Generate a new migration
mix test # Run all tests
mix test FILE # Run specific test file
mix test FILE:LINE # Run specific test at line number
mix test --stale # Run only stale tests
mix assets.build # Build CSS and JavaScript assets
mix assets.deploy # Build and minify assets for production
mix phx.gen.live Context Schema table field:type # Generate LiveView CRUD
mix phx.gen.context Context Schema table field:type # Generate context
mix phx.gen.schema Context.Schema table field:type # Generate schema
mix format # Format Elixir code
mix format --check-formatted # Check if code is formatted
Now you can visit localhost:4000
from your browser.
Ready to run in production? Please check our deployment guides.
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix