basir / mern-amazona Goto Github PK
View Code? Open in Web Editor NEWBuild Ecommerce Like Amazon By MERN Stack
Home Page: https://basir.thinkific.com/courses/build-ecommerce-website-like-amazon-by-mern-stack
Build Ecommerce Like Amazon By MERN Stack
Home Page: https://basir.thinkific.com/courses/build-ecommerce-website-like-amazon-by-mern-stack
Hi there,
In https://www.youtube.com/watch?v=TRCDsB9i3bI&ab_channel=CodingwithBasir Part-8 Build Product Screen
I am following the exact same steps as tutorial but I am not seeing products on HomeScreen.
Here is my code:
The Toastify message will show not only one time but many times.
How to deploy it in production mode?It doesn't work as it is now
When I'm trying to add a new item to the cart to get a list of all the items in the cart, instead of adding it just replaces the current item that is already in the cart.
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!!!
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({});
after I installed there was no multivendor feature
Can we have where discount is optionally applied to some category
Can any One help i need to change from sandbox to live
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?
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>
im on lesson 23-complete sign-in Screen, i've been folowing line by line, and i cant get to show the dropdown menu
Admin Token should not be needed for standard user to edit profile.
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.
I need to delete them manually from db
When I try to delete a product for ex,I click,browser is reloading and nothing,the product haven't been deleted
caught Error: usePayPalScriptReducer must be used within a PayPalScriptProvider
any body know why this happen
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
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:
(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:
(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:
I just opened it on Local Host and the pagination was gone
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.