Coder Social home page Coder Social logo

basir / mern-amazona Goto Github PK

View Code? Open in Web Editor NEW
314.0 9.0 232.0 1.28 MB

Build Ecommerce Like Amazon By MERN Stack

Home Page: https://basir.thinkific.com/courses/build-ecommerce-website-like-amazon-by-mern-stack

HTML 1.22% CSS 1.64% JavaScript 97.00% Shell 0.14%
react mongodb reactjs shopping-cart nodejs mern-stack ecommerce

mern-amazona's People

Contributors

basir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mern-amazona's Issues

Production mode

How to deploy it in production mode?It doesn't work as it is now

Error in Object model.

Cast to ObjectId failed for value "mine" (type string) at path "_id" for model "Order"

Tried many ways but still not getting solved. Please help me out!!!

Video-20-Seed-Sample-Products function depreciation issue

there is a minor code issue of function depreciation that might cause an issue in prodcution.

In your code , there is a file named seedRoutes.js. in that file there is a line of code written as below:
await Product.remove({});

In new mongoose versions, document.remove() is deprecated. Replace remove() with deleteOne() or deleteMany().

here we should use deleteMany() function.
Thus change this line to the new one

await ProductCollection.deleteMany({});

Multi Vendor

after I installed there was no multivendor feature

Discount

Can we have where discount is optionally applied to some category

issue with products

hello. i recently had a problem with the code. after trying to implement the seeding after connection to database. i followed the code step by step yet immediately i finish all my products disappeared. i have been stuck with it for days. i am on video 20 and i don't have any way to advance and move forward because i don't know where the problem is coming from. please can you help me?

Issue with Admin Dashboard (Rendered Blank Page) (Fixed)

Admin Dashboard Rendered a Blank Screen Causes by Should be summary.orders instead of users
Dashboardscreen.js (Below is the fixed)

<Row>
						<Col md={4}>
							<Card>
								<Card.Body>
									<Card.Title>
										{summary.users && summary.users[0]
											? summary.users[0].numUsers
											: 0}
									</Card.Title>
									<Card.Text> Users</Card.Text>
								</Card.Body>
							</Card>
						</Col>
						<Col md={4}>
							<Card>
								<Card.Body>
									<Card.Title>
										{summary.orders && summary.orders[0]
											? summary.orders[0].numOrders
											: 0}
									</Card.Title>
									<Card.Text> Orders</Card.Text>
								</Card.Body>
							</Card>
						</Col>
						<Col md={4}>
							<Card>
								<Card.Body>
									<Card.Title>
										$
										{summary.orders && summary.orders[0]
											? summary.orders[0].totalSales.toFixed(2)
											: 0}
									</Card.Title>
									<Card.Text> Orders</Card.Text>
								</Card.Body>
							</Card>
						</Col>
					</Row>

dropdown menu not showing

im on lesson 23-complete sign-in Screen, i've been folowing line by line, and i cant get to show the dropdown menu

correct the product.map function in lesson-08

there is a issue in lesson-08-Fetch Products code (Link)

your code is
{products.map((product) => (
but the corrected one is as below
{products?.map((product) => (

because--

use products?.map then it will render correctly because we have fetched the data by sending request to API so first we have to check if the "products" existed or not.

usePayPalScriptReducer

caught Error: usePayPalScriptReducer must be used within a PayPalScriptProvider
any body know why this happen

Lesson 33 Heroku deployment, database connection

Hello everybody!
Im not sure that it is an issue or it just me doing something wrong. Im following instructions, but there is a problem im facing. After editing and copying .env file to root directory I run the npm start , the server is running and database is connected. Until now it seems to works well. But after clicking the link sending to localhost:5000 it displays network error in the browser and this error in the terminal and the app is crashed.

    callback(new error_1.MongoServerError(document));
    MongoServerError: user is not allowed to do action [find] on [mern-amazona-db.products]

Does anyone faced similar issue. Im trying to figure it out on my own to get unstuck, but im running out of ideas. And in console there is :
Failed to load resource: net::ERR_CONNECTION_REFUSED

ProductEditScreen is loading..

C:/Users/Anjitha/OneDrive/Desktop/project5/Signature/frontend/node_modules/process/browser.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:

  • C:\Users\Anjitha\OneDrive\Desktop\project5\Signature\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Anjitha\OneDrive\Desktop\project5\Signature\frontend\node_modules\process\browser.js
    Used by 3 module(s), i. e.
    C:\Users\Anjitha\OneDrive\Desktop\project5\Signature\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Anjitha\OneDrive\Desktop\project5\Signature\frontend\node_modules\react-error-overlay\lib\index.js
  • C:\Users\Anjitha\OneDrive\Desktop\project5\Signature\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Anjitha\OneDrive\Desktop\project5\signature\frontend\node_modules\process\browser.js
    Used by 1 module(s), i. e.
    C:\Users\Anjitha\OneDrive\Desktop\project5\Signature\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Anjitha\OneDrive\Desktop\project5\signature\frontend\node_modules\setimmediate\setImmediate.js

(webpack)/buildin/global.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:

  • C:\Users\Anjitha\OneDrive\Desktop\project5\Signature\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Anjitha\OneDrive\Desktop\project5\Signature\frontend\node_modules\webpack\buildin\global.js
    Used by 22 module(s), i. e.
    C:\Users\Anjitha\OneDrive\Desktop\project5\Signature\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Anjitha\OneDrive\Desktop\project5\Signature\frontend\node_modules\node-libs-browser\node_modules\punycode\punycode.js
  • C:\Users\Anjitha\OneDrive\Desktop\project5\Signature\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Anjitha\OneDrive\Desktop\project5\signature\frontend\node_modules\webpack\buildin\global.js
    Used by 5 module(s), i. e.
    C:\Users\Anjitha\OneDrive\Desktop\project5\Signature\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Anjitha\OneDrive\Desktop\project5\signature\frontend\node_modules\axios\lib\utils.js

(webpack)/buildin/module.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:

  • C:\Users\Anjitha\OneDrive\Desktop\project5\Signature\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Anjitha\OneDrive\Desktop\project5\Signature\frontend\node_modules\webpack\buildin\module.js
    Used by 3 module(s), i. e.
    C:\Users\Anjitha\OneDrive\Desktop\project5\Signature\frontend\node_modules\babel-loader\lib\index.js??ref--6-ktop\project5\Signature\frontend\node_modules\babel-loader\lib\index.js??ref--6-oneOf-2!C:\Users\Anjitha\OneDrive\Desktop\project5\signature\frontend\node_modules\react\cjs\react.development.js

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.