gerbanglabs/core-gerbangku — reverse-engineered prompt
Reverse engineered prompt
Build me a backend API for Gerbangku, a SaaS platform for small Bali businesses to manage an online store and orders.
I want public store pages to be usable without login, so customers can fetch business info, browse products by business slug and category, then create an order. When an order is created, it should generate an order number, save the customer and item details, calculate totals, and send a WhatsApp notification through Fonnte.
Also build private dashboard APIs with register, login, JWT auth, and profile access. Use PostgreSQL or Supabase for the database, with tables for users, businesses, products, orders, and order items. Please make the app auto create the schema on first run, support CORS, log HTTP requests, and use environment variables for database, JWT, Fonnte, port, and allowed origins.
Include simple setup docs, an example env file, seed data, and a Postman collection or test script so I can run and check the API locally.
Want more depth? Deep Reverse