Skip to content

velrest/loka

Repository files navigation

Loka

To start your Phoenix server:

  • Run mix setup to install and setup dependencies
  • 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.

Architecture

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 to User). 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 with name and description. Supports soft-delete and audit trail.
    • Stock: Links an Item to a Studio. Fields: quantity, price (CHF). One entry per item per studio. Supports soft-delete and audit trail.
    • Image: For multiple pictures per Item. (Not yet implemented)
  • Commerce: Handles all shopping-related logic. (All not yet implemented)

    • Order: A record of a transaction, linking a User, a Studio, and OrderItems.
    • OrderItem: A line item in an order.
    • Cart: A temporary holder for a user's intended purchases.

Users

Password is password123 for all users

Learn more

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors