[Tin tức] Node.js E-Commerce App REST API with MongoDB | Shopping API with Stripe & JWT



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

28 bình luận về “[Tin tức] Node.js E-Commerce App REST API with MongoDB | Shopping API with Stripe & JWT”

  1. 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

    Bình luận
  2. 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.

    Bình luận
  3. 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

    Bình luận

Viết một bình luận

bahis10bets.com betvole1.com casinomaxi-giris.com interbahis-giris1.com klasbahis1.com mobilbahisguncelgiris1.com piabetgiris1.com tipobettgiris.com tumbetgiris1.com betboro 1xbet giriş
bahis10bets.com betvole1.com casinomaxi-giris.com interbahis-giris1.com klasbahis1.com mobilbahisguncelgiris1.com piabetgiris1.com tipobettgiris.com tumbetgiris1.com betboro 1xbet giriş
antalya bayan escort
antalya bayan escort
antalya bayan escort