experiment filep.03
at a glance
the honest state of it- concept
- One Next.js app and one Postgres database running a whole clothing store, from the lookbook to the refund.
- what exists
- Lookbook storefront with styles in colours × sizes; one-page prepaid guest checkout through Razorpay; buyer order pages with tracking; admin with password + required 2FA.
- what was built
- An inventory engine with reservations and concurrency tests, fulfilment (pack, ship, deliver, returns), refunds, queued emails, scheduled jobs and encrypted nightly backups.
- current state
- Live at astitva.store, taking prepaid orders through Razorpay. Policies roll out soon.
01 —Why
what problem was I trying to solve?[add why — what the brand needed]
02 —Idea
what was the initial concept?A store that behaves like a lookbook first and a shop second, with the operational side built properly: stock that can't be oversold, and a clear path for every order, from payment to refund.
03 —Build
how did I actually make it?Next.js with Drizzle ORM on Postgres, Better Auth for the admin (password plus a required authenticator code), Razorpay with signature checks and webhooks, and photos on Cloudinary. Every table has row-level security on, and the app is the only thing that can read it.
stock is held 15 minutes while you pay. then it goes back on the shelf.
04 —Result
what exists today?Live at astitva.store. Catalogue, inventory, checkout, payments, fulfilment and refunds all shipped together.
05 —Lessons
what did I learn?notes pending — was written on a different page
06 —Evidence
pictures or it didn't happen
[add checkout screenshot]
[add admin screenshot]