Step 4 — Project layout

Pause and learn the map — every later step drops files into these folders.

What you will learn

  • Which folder owns catalog code vs config vs migrations
Before you start
PathYou will use it for
services/ProductService, CustomerService, OrderService, WalletService
switches/Register 'product', 'customer', …
environment/.envAPP_NAME, JWT_SECRET, PORT
environment/settings.ini[db], [app_switches], [app_authentications]
database/migrations/Step 5 — create products
storage/logs/Runtime logs when something fails
public/Optional storefront UI in Step 12

Deep reference: Application structure.

Checkpoint

curl -s -X POST http://127.0.0.1:8000/api/v1/ \
  -H "Content-Type: application/json" \
  -d '{"service":"product","action":"list"}'

Still returns the two hard-coded products.