This is a store project where users can buy products. There are two pages: the homepage and the cart page. Users can filter products and order them using the cart page.
To install the project dependencies, run the following command:
npm installTo start the development server, run the following command:
npm run devThe homepage can be accessed at http://localhost:3000/ and the cart page can be accessed at http://localhost:3000/cart.
To start the production server, run the following command:
npm run build && npm run start- Next.js
- React
- Redux
- TypeScript
- MongoDB
- .eslintrc.json
- .gitignore
- next-env.d.ts
- next.config.js
- package-lock.json
- package.json
- public
- favicon.ico
- vercel.svg
- Readme.md
- src
- assets
- images
- default.png
- images
- components
- Cart
- CartItem
- index.tsx
- CartItemsList
- index.tsx
- CartPageMessage
- index.tsx
- index.ts
- OrderForm
- index.tsx
- rules.ts
- QuantityField
- index.tsx
- CartItem
- CheckmarkSelect
- index.tsx
- ProductCard
- EmptyCard.tsx
- index.tsx
- Spinner
- index.tsx
- StyledBox
- index.tsx
- Cart
- containers
- Cart
- index.tsx
- Filters
- index.tsx
- Header
- index.tsx
- ProductList
- index.tsx
- Sidebar
- index.tsx
- Cart
- contexts
- CartContext.tsx
- core
- api
- makeOrder.ts
- product.ts
- productList.ts
- productsById.ts
- shopList.ts
- [...all].ts
- config
- mongodb.ts
- database
- migrate
- init.mongodb.js
- migrate
- services
- cart.ts
- makeOrder.ts
- product.ts
- productList.ts
- shopList.ts
- store
- actions
- cart.ts
- makeOrder.ts
- product.ts
- productList.ts
- shopList.ts
- constants
- cart.ts
- makeOrder.ts
- product.ts
- productList.ts
- shopList.ts
- index.ts
- reducers
- cart.ts
- makeOrder.ts
- product.ts
- productList.ts
- shopList.ts
- selectors
- cart.ts
- makeOrder.ts
- product.ts
- productList.ts
- shopList.ts
- actions
- themes
- light
- CustomPalette.ts
- index.ts
- light
- types
- CartItem.ts
- OrderForm.ts
- Product.ts
- ProductList.ts
- Shop.ts
- api
- hooks
- redux.ts
- useCart.ts
- pages
- cart
- index.tsx
- index.tsx
- _app.tsx
- _document.tsx
- cart
- utils
- cart.ts
- assets
- tsconfig.json