Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Build MERN E-commerce Backend API : With/Without AI. Part 1
Rating: 4.4 out of 5(168 ratings)
8,016 students

Build MERN E-commerce Backend API : With/Without AI. Part 1

Master MERN Stack backend development with MongoDB, Mongoose, APIs, and AI coding using Cursor AI, With/Without Coding
Last updated 11/2024
English
English [Auto],

What you'll learn

  • Learn How to use AI for Building Complete API
  • Payment integration using Stripe
  • API Documentation & Deployment
  • Payment webHook handling
  • Pagination and filtering techniques
  • Order statistics and analysis
  • Admin process for managing orders
  • Implementing categories and product management
  • Order management system
  • Implementing user authentication and authorization

Course content

18 sections118 lectures12h 22m total length
  • Introduction1:55

    Build a complete MERN e-commerce backend API with node.js and mongoDB in two phases: with ai and without ai, using Cursor AI and ChatGPT for roadmap, features, and Postman testing.

  • AI Prompt For Getting Started4:49

    Clarify the project scope and tech stack for a node.js, express, MongoDB, and mongoose MERN backend. Generate models and features, arrange MVC folder structure, and prepare prompts for cursor AI.

  • Cursor AI Overview And Customization4:33

    Explore Cursor I, a VS Code-based code editor with built-in AI, learn how to customize with extensions, enable composer to generate files, and use chat to reference code and docs.

  • Using AI to Generate Files And Folders5:28

    Generate the e-commerce backend api using mongoose and express by scaffolding folders and files with the kci composer feature, including a node script to create the folder structure.

  • Implementing Authentication8:50

    Implement user authentication for a MERN backend by building the user model, auth controller, and auth routes with JWT-based login and MongoDB integration.

  • MongoDB Connection String5:11

    Obtain the MongoDB Atlas connection string by creating a free project, then configure your environment with the mongo url and test the database connection.

  • Testing Register and login Logic5:34

    Test the register and login endpoints using Postman, configure an API version one endpoint structure, and verify token generation for authentication in the MERN e-commerce backend.

  • Implementing User Controllers6:31

    Implement and wire the user profile update in the MERN backend by updating the user model and controller, wiring routes and app.js, and adding authentication middleware.

  • Testing of users Controllers Logic11:53

    Test and validate the MERN e-commerce backend's user endpoints, including profile get and patch, plus address create, update, and delete, with token-based authentication.

  • Product Controllers7:21

    Learn to implement product logic in a MERN e-commerce backend by building the product model and controllers, with routes and search support, plus Cloudinary file uploads.

  • Products controllers Testing13:32

    Test product API endpoints with postman: create, get all, details, update, delete, and stock; enforce admin authorization and handle form data and image uploads.

  • Brand and Category Controllers5:22
  • Postman Environments5:43

    Configure Postman environments to boost API testing efficiency by defining a dev environment with base URL and token as variables, reuse them in requests, and test categories and brands endpoints.

  • Testing Brands and Categories Routes9:34

    Test the brands and categories routes with postman, covering create and list. Ensure token-based admin authorization via middleware and validate category payloads and brand logo uploads.

  • Cart Controller4:29

    Implement backend cart management by building an embedded cart model, calculating total items and amount, and exposing get, add, update, delete, and clear endpoints mounted in app.js.

  • Testing Cart Management Routes7:42
  • Shipping methods controllers2:43

    Implement shipping methods in the MERN backend by building the shipping method model, controller, and routes, organizing docs, and preparing a complete shipping methods API endpoint for testing.

  • Testing Shipping Methods Endpoints10:59

    Test shipping methods endpoints by creating and updating methods, retrieving regions, and calculating costs, using postman with sample json and validating data structures.

  • Placing Order-Payment Integration15:44

    Learn to place orders by integrating Stripe payment in a MERN backend, creating orders from cart items with shipping methods, handling payments and status updates.

  • Payment history Controller6:26

    Develop a payment history model and controller to track transactions with amount, currency, status, and method, enabling separation of concern, pagination, and date filtering for admin review.

  • Implementing WishLists Logic5:41

    Implement wishlist logic by wiring endpoints to add, view, delete, and move items to cart using product ids and authorization tokens. Expose routes like /wishlist and /wishlist/:id/move-to-cart with sample json.

  • Review Controller5:15

    Define a review model in the MERN backend with user, product ID, rating, comment, and status; prevent duplicates and compute the average rating through the review controller and routes.

Requirements

  • Basics of NodeJS
  • Basics of Javascript (ES6)

Description

This course is designed to provide students with a comprehensive understanding of building and deploying full-featured APIs, including leveraging AI tools like Cursor AI. Students will learn how to build APIs using AI-driven approaches while mastering backend development with the MERN stack, MongoDB/Mongoose, and integrating advanced features.

Throughout the course, students will learn to integrate Stripe for payment processing, implement pagination and filtering techniques, analyze order statistics, manage orders through an admin panel, and handle categories and product management. Additionally, the course will guide students on database design and connection, as well as implementing user authentication and authorization.

The course starts with an introduction to Node.js and the fundamentals of API development, including setting up a development environment, creating and testing API endpoints, and connecting to databases. As students progress, they will explore integrating Stripe for payments, handling webhooks, implementing advanced querying techniques, and building robust analytics systems.

What sets this course apart is the integration of AI-powered coding techniques using Cursor AI, enabling students to build efficient, scalable APIs faster. Students will also work on real-world projects to gain hands-on experience with tools and workflows that enhance their productivity and understanding of modern API development.

Topics include:

  • Building and testing APIs with AI-driven tools like Cursor AI

  • Integrating Stripe for payment processing and webhooks

  • Designing pagination, filtering, and order analytics

  • Implementing admin processes for orders, product management, and categories

  • Ensuring API security, performance, and scalability

By the end of the course, students will have a strong foundation in API development, the skills to deploy APIs in real-world environments, and practical experience with AI tools that enhance coding efficiency.

Who this course is for:

  • Developers who wants to leverage AI Effectively for building projects
  • Developers who want to learn about building APIs
  • Students who are new to web development and want to learn about building APIs
  • Developers who want to learn about integrating Stripe for payment processing
  • Engineers who are interested in learning about building e-commerce systems
  • Individuals who want to learn about building and deploying a full-featured API
  • Anyone who wants to learn more about building and working with APIs.