Node MongoDB eCommerce Rest API using Stripe payment method. Node.js shopping API tutorial using express, MongoDB, and JWT for beginners.
Last Part (Design): h
Next Part (MERN Stack Shopping App): Coming Soon
Buy me a coffee:
Join me:
Source Code:
Join Lama Dev groups
Facebook:
Instagram:
Twitter:
Discord:
0:00 Introduction
01:08 Creating an Express App
06:11 Node.js MongoDB Connection
12:20 Understanding Node.js Router
21:15 Node.js MongoDB Models
31:45 Node.js MongoDB Authentication
50:28 Node.js JWT Implementation
54:00 Node.js CRUD Operations with JWT
01:37:50 Advanced MongoDB Functions
01:46:23 Node.js Stripe Implementation
01:51:04 Stripe React.js Implementation
01:57:04 React, Node.js, Stripe Payment Implementation
02:06:21 Outro
Can you show how to deploy this app or something similar to this app ?
i got an error, which is the "GET ALL PRODUCT" crud function couldn't be executed on Postman, which sends "You are not authenticated!" as a response, but am sure there's no error code. Does anyone know the reason?
one day for sure i will get a coffee for your sir, now I'm final year student after getting job . Thank you so much sir. 🤍☕🤍
please lama dev i need the next tutorial add my frontend part and the backend please , think you so mutch for your very nice l work
There's a major error in this tutorial. If you don't use "return" when calling res.send() or res.json(), the function will never finish and you will be unable to submit any new HTTP requests to the server.
Otherwise, it's a pretty good tutorial. Thank you!
i think that category not is 100% safe field coming from the request, i see is possible replace references in mongoose in schema { type: Schema.Types.ObjectId, ref: 'category'}.
the previous method cand apply to userId reference, but, overthinking about its problem from logic commerce, mongoose finally has been relationship (noSql triying in relationships (?)
nevermind i'm novice right now
Is anyone completed this part successfully
I'm facing an issue with the put method when I update the user I send a request in postman it shows an empty object and error 500. can anyone guide me
I don't understand why you write "BEARER" 56:33
I don't know who else had this problem..after making "isAdmin" as true and then if I login it shows previous database…can anyone help me ,thanks in advance
If someone search for ES6 import for stripe here it is
Import "dotenv/config"
import Stripe from 'stripe';
const stripe = new Stripe('sk_test_…');
Can anyone help
It shows bad req
And axios
At the very end i am getting error for post
What tech would you need to create a payment wall for access to a web app?
@lama at last it shows axios is not defined
Anybody can tell where is success.js code here
Anybody knows about
Do you have a source code for your small react app at the end of the video anywhere?
is anybody can help me with this issue about the payment:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
I use the button in the cart page in part 1 of this video and everything works fine except the last real payment through the backend server, but I already add CORS and didn't show me other issues.
Amazing tutorial thank you
when trying to update cart in postman it returns a null value. does anyone have any idea how to fix this??
I have a issue with handling auth errors. its redirecting registering and login successfully. however when user enters wrong credentials node server is crashing regarding this issue waiting for your help.
For query strings it probably would be more efficient to use req.query as a filter for mongoose.find() method. As category query string does not match "categories" in the product schema, you could destructure req.query, build a custom object and pass it into the .find() method:
const { category, …rest } = req.query;
const query = {…rest};
if(category) query.categories = category;
const products = await Product.find(query);
Otherwise, you'd have to write lines of if statements
Now code like: !user && res.status(401).json("Wrong username!") couses problems with api, it should be changed to: if(!user) { res.status(401).json('Wrong username!'); return;}
Get Method 1:11:57
//Get All User 1:13:07
//Get User Stats 1:15:55
///route/product.js 1:22:00
//Cart.js 1:32:15
lama please make a video on aws tutorial