An online store where the cart reacts the moment you click, and the catalog keeps loading even when the database is down. It uses server-rendered Next.js and Stripe checkout, with prices always checked on the server.

Adark-themedmodernretailstorefrontcalledZazStoreengineeredforfastcatalogbrowsingandzero-delayshoppingcartinteractions.Itpairsserver-renderedcategoryandproductpageswithclient-sideoptimisticUIupdates,ensuringtheinterfacerespondsinstantlytouserclickswhilemaintainingstrictdatabaseconsistency.
Thecatalog,categoryroutes,andproductdetailpagesareasyncServerComponentsthatqueryMongoDBdirectlywithURL-drivensearchparametersandpricesorting.Whencustomersmodifyquantitiesoradditemstotheircart,acustomReacthookcombinesReact19useOptimisticandstartTransitionwithReduxToolkitthunks.Theinterfaceupdateslocallywithzerodelay;ifthenetworkfails,thehookcatchestherejectionandrollsbacktothelastconfirmedserverstate.CartdatapersiststoMongoDBperauthenticateduser,withhandlersautomaticallycleaningupreferencesifaproductisremovedfromthecatalog.
Engineeredaresilientdatabaselayerfeaturingconnectionpooling,a10-secondfailurecooldowncircuitbreaker,andautomaticfallbacktoanin-memorymockcatalog.IfMongoDBexperiencesanoutage,thestorefrontcontinuesservingcatalogpageswithoutthrowing500errorpages.Checkoutsecurityenforcespricesstrictlyontheserver:POSTrequeststothecheckoutendpointpullverifiedamountsfromthedatabase,buildStripeHostedCheckoutSessions,andlogimmutableorderrecordsuponreturnwhileclearingtheactivecart.Server-to-clientsessionhydrationdecodesJWTcookiesintherootlayouttopreventunauthenticatedlayoutflashes.
Builttheserver-sidecatalogandproductdetailpagesusingNext.jsAppRouterwithdynamiccategoryroutesandURLsearchparams.
ImplementedoptimisticcartmutationsusingReact19useOptimisticanduseTransitionhooksbackedbyReduxToolkitthunks.
BuilttheStripeCheckoutSessionintegrationwithserver-enforcedpricingandpost-paymentorderverification.
ConfiguredaresilientMongooseconnectionpoolwitha10-secondfailurecooldowncircuitbreakerandmockdatafallbacks.
Designedserver-to-clientsessionhydrationviaHTTP-onlyJWTcookiestoeliminateauthenticationlayoutflashes.
Createdresponsivezinc-darkloadingskeletonsanderrorboundarieswithretrybuttonsacrossallcoreroutes.
Gallery





Built with
Haveaprojectinmind?
aitezazsikandar@gmail.com