Skip to content

Commit

Permalink
🚀vercel deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jigar-sable committed May 4, 2024
1 parent 972ae4b commit d74538f
Show file tree
Hide file tree
Showing 40 changed files with 337 additions and 48 deletions.
71 changes: 44 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Flipkart-MERN
# Flipkart - MERN
Full-Stack Flipkart with Admin Dashboard & Paytm Payment Gateway.

[Visit Now](https://flipkartwebs.herokuapp.com/) 🚀
Expand Down Expand Up @@ -32,26 +32,48 @@ Full-Stack Flipkart with Admin Dashboard & Paytm Payment Gateway.
**Mail Service:** [Sendgrid](https://sendgrid.com/)

## 🚀 Features
- Login/Signup User Account
- Update Profile/Password User Account
- Reset Password Mail using Sendgrid
- Cart Add/Remove Items | Update Quantities
- Save For Later Add/Remove Items
- Wishlist Add/Remove Items
- Products Pagination (Default 12 Products Per Page)
- Product Search
- Product Filters Based on Category/Ratings | Price Range
- Shipping Info in Session Storage
- My Orders (With All Filters)
- Order Details of All Ordered Item
- Users will receive mail when order placed with all details
- Review Products User Account
- Admin: Dashboard access to only admin roles
- Admin: Update Order Status | Delete Order
- Admin: Add/Update Products
- Admin: Update User Data | Delete User
- Admin: List Review of Product | Delete Review
- Stock Management: Decrease stock of product when shipped

**User Account Management**
- Login/Signup: 🚪 Users can create an account or log in to an existing one.
- Update Profile/Password: 🔐 Users can update their profile information and change their passwords.

**Password Management**
- Reset Password Mail: 📧 Utilizing Sendgrid, users can reset their passwords via email.

**Shopping Cart**
- Add/Remove Items: 🛒 Users can add items to their shopping cart or remove them as needed.
- Update Quantities: 🔢 Quantities of items in the cart can be adjusted.

**Saved Items**
- Save For Later: 💾 Users can move items from the cart to a "Saved For Later" list or remove them from it.

**Wishlist**
- Add/Remove Items: ❤️ Users can add items to their wishlist or remove them from it.

**Product Browsing**
- Pagination: 📚 Products are paginated, with 12 products displayed per page by default.
- Search: 🔍 Users can search for products.
- Filters: 🎛️ Products can be filtered based on categories, ratings, and price range.

**Checkout Process**
- Shipping Info: 🚚 Shipping information is stored in session storage for ease of checkout.
- Payment Options: 💳 Users can pay through Paytm payment gateway for checkout.

**Order Management**
- My Orders: 📦 Users can view their order history with various filters.
- Order Details: ℹ️ Details of all ordered items are accessible.
- Order Confirmation: ✉️ Users receive email notifications with comprehensive order details upon placing an order.

**Product Interaction**
- Review Products: 🌟 Users can review products.

**Admin Features**
- Dashboard: 🖥️ Admins have access to a dedicated dashboard.
- Order Management: 📊 Admins can update order statuses and delete orders.
- Product Management: 📝 Admins can add/update products.
- User Management: 👥 Admins can update user data and delete users.
- Review Management: 📜 Admins can view and delete product reviews.
- Stock Management: 📉 Product stock is automatically decreased upon shipment.

## Sneak Peek of Admin Dashboard 🙈 :
![Capture](https://user-images.githubusercontent.com/64949957/153995268-0cb769b9-e0ee-48ea-83c1-09b881df4101.PNG)
Expand All @@ -71,9 +93,4 @@ Full-Stack Flipkart with Admin Dashboard & Paytm Payment Gateway.

If you want to contact me, you can reach me through below handles.

[![linkedin](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/jigar-sable)

© 2022 Jigar Sable


[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)
[![linkedin](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/jigar-sablee)
15 changes: 0 additions & 15 deletions backend/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const express = require('express');
const path = require('path');
const bodyParser = require('body-parser');
const cookieParser = require('cookie-parser');
const fileUpload = require('express-fileupload');
Expand Down Expand Up @@ -27,20 +26,6 @@ app.use('/api/v1', product);
app.use('/api/v1', order);
app.use('/api/v1', payment);

// deployment
__dirname = path.resolve();
if (process.env.NODE_ENV === 'production') {
app.use(express.static(path.join(__dirname, '/frontend/build')))

app.get('*', (req, res) => {
res.sendFile(path.resolve(__dirname, 'frontend', 'build', 'index.html'))
});
} else {
app.get('/', (req, res) => {
res.send('Server is Running! 🚀');
});
}

// error middleware
app.use(errorMiddleware);

Expand Down
2 changes: 1 addition & 1 deletion frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/coverage

# production
/build
# /build

# misc
.DS_Store
Expand Down
35 changes: 35 additions & 0 deletions frontend/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"files": {
"main.css": "/static/css/main.3c4514cf.css",
"main.js": "/static/js/main.137212d1.js",
"static/media/payment-methods.svg": "/static/media/payment-methods.69e7ec34d1302e6b58b2cb1abe6b2f9c.svg",
"static/media/404-not-found.svg": "/static/media/404-not-found.f58b723c5e420e43683574327be5529a.svg",
"static/media/furniture.png": "/static/media/furniture.c167da994e4cf873c7f5.png",
"static/media/kitchen-sale.jpg": "/static/media/kitchen-sale.058c7dbd12f5f0a0be9e.jpg",
"static/media/fashionsale.jpg": "/static/media/fashionsale.3071fadf18ef75cdee1c.jpg",
"static/media/success.png": "/static/media/success.a6e71fb67ec0538ff2ee.png",
"static/media/failed.png": "/static/media/failed.25f9a5080785b1e6642c.png",
"static/media/gadget-sale.jpg": "/static/media/gadget-sale.ec893927252d46afc4d9.jpg",
"static/media/appliances.png": "/static/media/appliances.968e046c13701f2e1260.png",
"static/media/fashion.png": "/static/media/fashion.280fd2c8f7637aca622b.png",
"static/media/poco-m4-pro.webp": "/static/media/poco-m4-pro.48599deb73643813688f.webp",
"static/media/grocery.png": "/static/media/grocery.b684d799acd0d0375626.png",
"static/media/home.png": "/static/media/home.eb7132924aab6919441b.png",
"static/media/beauty.png": "/static/media/beauty.7d66ddbcf545e947bd6b.png",
"static/media/logo.png": "/static/media/logo.3b0baaaf50ed860dcc7a.png",
"static/media/electronics.png": "/static/media/electronics.c3245fc5e6c095785d94.png",
"static/media/realme-9-pro.webp": "/static/media/realme-9-pro.5a99ab97f9f4b611aadc.webp",
"static/media/oppo-reno7.webp": "/static/media/oppo-reno7.dedadaebb21cf2bb2137.webp",
"static/media/phone.png": "/static/media/phone.6039d584e2ddf5e9355e.png",
"static/media/travel.png": "/static/media/travel.19839bf1002d4c52057f.png",
"static/media/slick.svg": "/static/media/slick.2630a3e3eab21c607e21.svg",
"static/media/slick.eot": "/static/media/slick.a4e97f5a2a64f0ab1323.eot",
"static/media/slick.ttf": "/static/media/slick.c94f7671dcc99dce43e2.ttf",
"static/media/slick.woff": "/static/media/slick.295183786cd8a1389865.woff",
"index.html": "/index.html"
},
"entrypoints": [
"static/css/main.3c4514cf.css",
"static/js/main.137212d1.js"
]
}
Binary file added frontend/build/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions frontend/build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Online Shopping India | Buy Mobiles, Electronics, Appliances, Clothing and More Online at Flipkart"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Flipkart MERN | Ecommerce Website</title><script defer="defer" src="/static/js/main.137212d1.js"></script><link href="/static/css/main.3c4514cf.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
Binary file added frontend/build/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/build/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions frontend/build/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions frontend/build/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
5 changes: 5 additions & 0 deletions frontend/build/static/css/main.3c4514cf.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions frontend/build/static/js/main.137212d1.js

Large diffs are not rendered by default.

132 changes: 132 additions & 0 deletions frontend/build/static/js/main.137212d1.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/

/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/

/*!
* @kurkle/color v0.2.1
* https://github.com/kurkle/color#readme
* (c) 2022 Jukka Kurkela
* Released under the MIT License
*/

/*!
* Chart.js v3.9.1
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/

/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @mui/styled-engine v5.11.11
*
* @license MIT
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @remix-run/router v1.4.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/**
* React Router DOM v6.9.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/**
* React Router v6.9.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/** @license React v0.20.2
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v17.0.2
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v17.0.2
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v17.0.2
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading

0 comments on commit d74538f

Please sign in to comment.