Hello, I’m Suraj Rawat.

(Overview)
Adark-themedmodernretailstorefrontcalledZazStoreengineeredforfastcatalogbrowsingandzero-delayshoppingcartinteractions.Itpairsserver-renderedcategoryandproductpageswithclient-sideoptimisticUIupdates,ensuringtheinterfacerespondsinstantlytouserclickswhilemaintainingstrictdatabaseconsistency.
(Architecture)
Thecatalog,categoryroutes,andproductdetailpagesareasyncServerComponentsthatqueryMongoDBdirectlywithURL-drivensearchparametersandpricesorting.Whencustomersmodifyquantitiesoradditemstotheircart,acustomReacthookcombinesReact19useOptimisticandstartTransitionwithReduxToolkitthunks.Theinterfaceupdateslocallywithzerodelay;ifthenetworkfails,thehookcatchestherejectionandrollsbacktothelastconfirmedserverstate.CartdatapersiststoMongoDBperauthenticateduser,withhandlersautomaticallycleaningupreferencesifaproductisremovedfromthecatalog.
(Engineering)
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
Explore this project
Inspect the live deployment or browse the repository code.