Indrajit-Saha/medusa-admin-backoffice-poc ? reverse-engineered prompt

Reverse engineered prompt

Build me a production ready ecommerce starter for a direct to consumer store using Medusa and Next.js.

I want a monorepo with a backend and a storefront that I can run locally and deploy later. The storefront should let people browse products, pick variants, add items to a cart, apply promo codes, go through checkout with shipping and payment, and manage customer accounts with order history and saved addresses. It should also support multiple regions and auto detect the country when possible.

Please make the setup straightforward with clear environment variables, database setup, migrations, and a way to create an admin user. I also want the admin dashboard available so I can log in and grab the publishable API key for the storefront. If you need current Medusa or Next.js docs to confirm anything, look them up online.