Personal build · Next.js

MegaBazar, a storefront built in Next.js

Category pages, product pages, search, a cart and a checkout with a test payment screen. I built it alone in my second year at AIUB.

The MegaBazar home page: search bar, category menu and a sale banner

Four pages of the store

Browse a category

A grid of products for one category, with filters down the side.

The electronics category page with filters and a grid of products

Read a product page

Photos, price, stock and the add-to-cart button for one product.

A product page with photos, price and the add-to-cart button

Fill the cart

Change quantities and see the total before you check out.

The cart with item quantities and the order total

Check out

A shipping address, then cash on delivery, bKash or card.

The checkout page with address, delivery options and payment

What the store taught me

Three notes from building MegaBazar, and the shoe store that came before it.

  • Server actions

    For most of this store’s write paths they beat API routes

  • Cart state

    It belongs in the URL until checkout

  • A test payment screen

    It taught me more about checkout than a real one would have

  • ShoeVista

    An earlier multi-vendor shoe store with vendor dashboards

    2023
Search results on MegaBazar for a query, with filters and product cards