To start your Phoenix server:
- Run
mix setupto install and setup dependencies - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -S mix phx.server
Now you can visit localhost:4000 from your browser.
Ready to run in production? Please check our deployment guides.
sh <(curl 'https://ash-hq.org/install/loka?install=phoenix') \
&& cd loka && mix igniter.install ash ash_phoenix \
ash_postgres ash_authentication ash_authentication_phoenix \
ash_admin ash_oban oban_web ash_archival live_debugger \
ash_paper_trail cloak ash_cloak ash_money \
--auth-strategy password --auth-strategy magic_link \
--setup --yes-
Account: Manages user identity and personal data.
User: A person who can be a buyer or a studio owner. Fields:email,hashed_password,confirmed_at. Handled by Ash Authentication (password + magic link).Address: A user's billing or shipping address. (Not yet implemented)
-
Studios: Represents the ceramic studios on the platform.
Studio: Fields:name,owner(belongs toUser). Supports soft-delete and audit trail.Address: The physical location of the studio with geocoordinates for mapping. (Not yet implemented)
-
Inventory: Contains the items that studios sell.
Item: A product type withnameanddescription. Supports soft-delete and audit trail.Stock: Links anItemto aStudio. Fields:quantity,price(CHF). One entry per item per studio. Supports soft-delete and audit trail.Image: For multiple pictures perItem. (Not yet implemented)
-
Commerce: Handles all shopping-related logic. (All not yet implemented)
Order: A record of a transaction, linking aUser, aStudio, andOrderItems.OrderItem: A line item in an order.Cart: A temporary holder for a user's intended purchases.
Password is password123 for all users
- user@loka.com Normal user
- studio1@loka.com Studio 1
- studio2@loka.com Studio 2
- 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