├── .env.example ├── .gitignore ├── .prettierrc.yaml ├── backend ├── config │ └── db.js ├── controllers │ ├── orderController.js │ ├── productController.js │ └── userController.js ├── data │ ├── products.js │ └── users.js ├── middleware │ ├── asyncHandler.js │ ├── authMiddleware.js │ ├── checkObjectId.js │ └── errorMiddleware.js ├── models │ ├── orderModel.js │ ├── productModel.js │ └── userModel.js ├── routes │ ├── orderRoutes.js │ ├── productRoutes.js │ ├── uploadRoutes.js │ └── userRoutes.js ├── seeder.js ├── server.js └── utils │ ├── calcPrices.js │ ├── generateToken.js │ └── paypal.js ├── frontend ├── README.md ├── package-lock.json ├── package.json ├── public │ ├── favicon.ico │ ├── images │ │ ├── airpods.jpg │ │ ├── alexa.jpg │ │ ├── camera.jpg │ │ ├── mouse.jpg │ │ ├── phone.jpg │ │ ├── playstation.jpg │ │ ├── sample.jpg │ │ └── screens.png │ ├── index.html │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── robots.txt └── src │ ├── App.js │ ├── assets │ ├── logo.png │ └── styles │ │ ├── bootstrap.custom.css │ │ └── index.css │ ├── components │ ├── AdminRoute.jsx │ ├── CheckoutSteps.jsx │ ├── Footer.jsx │ ├── FormContainer.jsx │ ├── Header.jsx │ ├── Loader.jsx │ ├── Message.jsx │ ├── Meta.jsx │ ├── Paginate.jsx │ ├── PrivateRoute.jsx │ ├── Product.jsx │ ├── ProductCarousel.jsx │ ├── Rating.jsx │ └── SearchBox.jsx │ ├── constants.js │ ├── index.js │ ├── reportWebVitals.js │ ├── screens │ ├── CartScreen.jsx │ ├── HomeScreen.jsx │ ├── LoginScreen.jsx │ ├── OrderScreen.jsx │ ├── PaymentScreen.jsx │ ├── PlaceOrderScreen.jsx │ ├── ProductScreen.jsx │ ├── ProfileScreen.jsx │ ├── RegisterScreen.jsx │ ├── ShippingScreen.jsx │ └── admin │ │ ├── OrderListScreen.jsx │ │ ├── ProductEditScreen.jsx │ │ ├── ProductListScreen.jsx │ │ ├── UserEditScreen.jsx │ │ └── UserListScreen.jsx │ ├── setupTests.js │ ├── slices │ ├── apiSlice.js │ ├── authSlice.js │ ├── cartSlice.js │ ├── ordersApiSlice.js │ ├── productsApiSlice.js │ └── usersApiSlice.js │ ├── store.js │ └── utils │ └── cartUtils.js ├── package.json ├── pnpm-lock.yaml ├── readme.md └── uploads └── .gitkeep /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/.prettierrc.yaml -------------------------------------------------------------------------------- /backend/config/db.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/config/db.js -------------------------------------------------------------------------------- /backend/controllers/orderController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/controllers/orderController.js -------------------------------------------------------------------------------- /backend/controllers/productController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/controllers/productController.js -------------------------------------------------------------------------------- /backend/controllers/userController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/controllers/userController.js -------------------------------------------------------------------------------- /backend/data/products.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/data/products.js -------------------------------------------------------------------------------- /backend/data/users.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/data/users.js -------------------------------------------------------------------------------- /backend/middleware/asyncHandler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/middleware/asyncHandler.js -------------------------------------------------------------------------------- /backend/middleware/authMiddleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/middleware/authMiddleware.js -------------------------------------------------------------------------------- /backend/middleware/checkObjectId.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/middleware/checkObjectId.js -------------------------------------------------------------------------------- /backend/middleware/errorMiddleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/middleware/errorMiddleware.js -------------------------------------------------------------------------------- /backend/models/orderModel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/models/orderModel.js -------------------------------------------------------------------------------- /backend/models/productModel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/models/productModel.js -------------------------------------------------------------------------------- /backend/models/userModel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/models/userModel.js -------------------------------------------------------------------------------- /backend/routes/orderRoutes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/routes/orderRoutes.js -------------------------------------------------------------------------------- /backend/routes/productRoutes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/routes/productRoutes.js -------------------------------------------------------------------------------- /backend/routes/uploadRoutes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/routes/uploadRoutes.js -------------------------------------------------------------------------------- /backend/routes/userRoutes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/routes/userRoutes.js -------------------------------------------------------------------------------- /backend/seeder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/seeder.js -------------------------------------------------------------------------------- /backend/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/server.js -------------------------------------------------------------------------------- /backend/utils/calcPrices.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/utils/calcPrices.js -------------------------------------------------------------------------------- /backend/utils/generateToken.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/utils/generateToken.js -------------------------------------------------------------------------------- /backend/utils/paypal.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/backend/utils/paypal.js -------------------------------------------------------------------------------- /frontend/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/README.md -------------------------------------------------------------------------------- /frontend/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/package-lock.json -------------------------------------------------------------------------------- /frontend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/package.json -------------------------------------------------------------------------------- /frontend/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/public/favicon.ico -------------------------------------------------------------------------------- /frontend/public/images/airpods.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/public/images/airpods.jpg -------------------------------------------------------------------------------- /frontend/public/images/alexa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/public/images/alexa.jpg -------------------------------------------------------------------------------- /frontend/public/images/camera.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/public/images/camera.jpg -------------------------------------------------------------------------------- /frontend/public/images/mouse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/public/images/mouse.jpg -------------------------------------------------------------------------------- /frontend/public/images/phone.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/public/images/phone.jpg -------------------------------------------------------------------------------- /frontend/public/images/playstation.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/public/images/playstation.jpg -------------------------------------------------------------------------------- /frontend/public/images/sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/public/images/sample.jpg -------------------------------------------------------------------------------- /frontend/public/images/screens.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/public/images/screens.png -------------------------------------------------------------------------------- /frontend/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/public/index.html -------------------------------------------------------------------------------- /frontend/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/public/logo192.png -------------------------------------------------------------------------------- /frontend/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/public/logo512.png -------------------------------------------------------------------------------- /frontend/public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/public/manifest.json -------------------------------------------------------------------------------- /frontend/public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/public/robots.txt -------------------------------------------------------------------------------- /frontend/src/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/App.js -------------------------------------------------------------------------------- /frontend/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/assets/logo.png -------------------------------------------------------------------------------- /frontend/src/assets/styles/bootstrap.custom.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/assets/styles/bootstrap.custom.css -------------------------------------------------------------------------------- /frontend/src/assets/styles/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/assets/styles/index.css -------------------------------------------------------------------------------- /frontend/src/components/AdminRoute.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/components/AdminRoute.jsx -------------------------------------------------------------------------------- /frontend/src/components/CheckoutSteps.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/components/CheckoutSteps.jsx -------------------------------------------------------------------------------- /frontend/src/components/Footer.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/components/Footer.jsx -------------------------------------------------------------------------------- /frontend/src/components/FormContainer.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/components/FormContainer.jsx -------------------------------------------------------------------------------- /frontend/src/components/Header.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/components/Header.jsx -------------------------------------------------------------------------------- /frontend/src/components/Loader.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/components/Loader.jsx -------------------------------------------------------------------------------- /frontend/src/components/Message.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/components/Message.jsx -------------------------------------------------------------------------------- /frontend/src/components/Meta.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/components/Meta.jsx -------------------------------------------------------------------------------- /frontend/src/components/Paginate.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/components/Paginate.jsx -------------------------------------------------------------------------------- /frontend/src/components/PrivateRoute.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/components/PrivateRoute.jsx -------------------------------------------------------------------------------- /frontend/src/components/Product.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/components/Product.jsx -------------------------------------------------------------------------------- /frontend/src/components/ProductCarousel.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/components/ProductCarousel.jsx -------------------------------------------------------------------------------- /frontend/src/components/Rating.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/components/Rating.jsx -------------------------------------------------------------------------------- /frontend/src/components/SearchBox.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/components/SearchBox.jsx -------------------------------------------------------------------------------- /frontend/src/constants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/constants.js -------------------------------------------------------------------------------- /frontend/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/index.js -------------------------------------------------------------------------------- /frontend/src/reportWebVitals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/reportWebVitals.js -------------------------------------------------------------------------------- /frontend/src/screens/CartScreen.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/screens/CartScreen.jsx -------------------------------------------------------------------------------- /frontend/src/screens/HomeScreen.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/screens/HomeScreen.jsx -------------------------------------------------------------------------------- /frontend/src/screens/LoginScreen.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/screens/LoginScreen.jsx -------------------------------------------------------------------------------- /frontend/src/screens/OrderScreen.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/screens/OrderScreen.jsx -------------------------------------------------------------------------------- /frontend/src/screens/PaymentScreen.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/screens/PaymentScreen.jsx -------------------------------------------------------------------------------- /frontend/src/screens/PlaceOrderScreen.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/screens/PlaceOrderScreen.jsx -------------------------------------------------------------------------------- /frontend/src/screens/ProductScreen.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/screens/ProductScreen.jsx -------------------------------------------------------------------------------- /frontend/src/screens/ProfileScreen.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/screens/ProfileScreen.jsx -------------------------------------------------------------------------------- /frontend/src/screens/RegisterScreen.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/screens/RegisterScreen.jsx -------------------------------------------------------------------------------- /frontend/src/screens/ShippingScreen.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/screens/ShippingScreen.jsx -------------------------------------------------------------------------------- /frontend/src/screens/admin/OrderListScreen.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/screens/admin/OrderListScreen.jsx -------------------------------------------------------------------------------- /frontend/src/screens/admin/ProductEditScreen.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/screens/admin/ProductEditScreen.jsx -------------------------------------------------------------------------------- /frontend/src/screens/admin/ProductListScreen.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/screens/admin/ProductListScreen.jsx -------------------------------------------------------------------------------- /frontend/src/screens/admin/UserEditScreen.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/screens/admin/UserEditScreen.jsx -------------------------------------------------------------------------------- /frontend/src/screens/admin/UserListScreen.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/screens/admin/UserListScreen.jsx -------------------------------------------------------------------------------- /frontend/src/setupTests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/setupTests.js -------------------------------------------------------------------------------- /frontend/src/slices/apiSlice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/slices/apiSlice.js -------------------------------------------------------------------------------- /frontend/src/slices/authSlice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/slices/authSlice.js -------------------------------------------------------------------------------- /frontend/src/slices/cartSlice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/slices/cartSlice.js -------------------------------------------------------------------------------- /frontend/src/slices/ordersApiSlice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/slices/ordersApiSlice.js -------------------------------------------------------------------------------- /frontend/src/slices/productsApiSlice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/slices/productsApiSlice.js -------------------------------------------------------------------------------- /frontend/src/slices/usersApiSlice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/slices/usersApiSlice.js -------------------------------------------------------------------------------- /frontend/src/store.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/store.js -------------------------------------------------------------------------------- /frontend/src/utils/cartUtils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/frontend/src/utils/cartUtils.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skc1211/React-Shop/HEAD/readme.md -------------------------------------------------------------------------------- /uploads/.gitkeep: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------