DEV Community

Siddhant Kumar
Siddhant Kumar

Posted on

Rasoi - An eCommerce store

A small online store built using nextjs, mongodb, and stripe. The home page is a generated product listing that is rebuilt every time there is a change in products collection.

link to demo

Submission Category:

E-commerce creation

Link to Code

Rasoi

A small headless online store built using nextjs, mongodb, and stripe. The home page is a generated product listing that is rebuilt every time there is a change in products collection.

Uses

DB

  • products collection

    {
      _id,
      name,
      description,
      images,
      price,
    }
    
    • creating a products triggers nextjs build SSG
    • view products
    • order them
    • (optional) cart feature
    • (optional) cart checkout
  • orders collection

    {
      _id,
      sessionId,
      email,
      amount,
      items
    }
    
    • creating an order triggers an email notification
    • strip checkout on client



Additional Resources / Info

Discussion (0)