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
- mongo data api to interact with the mongodb database.
- mongo realm triggers to trigger nextjs redeploy hook.
- stripe checkout for payments.
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
- stripe checkout on client
Additional Resources / Info
Uses mongo data api to interact with the mongodb database.
Uses mongo realm triggers to trigger nextjs redeploy hook.
Uses stripe checkout for payments.
Top comments (0)