Coder Social home page Coder Social logo

mschwarzmueller / nodejs-shopping-cart-tutorial Goto Github PK

View Code? Open in Web Editor NEW
351.0 37.0 310.0 28 KB

Repository with source code of YouTube series about creating a shopping-cart with nodejs

License: MIT License

JavaScript 30.07% CSS 1.34% HTML 68.58%

nodejs-shopping-cart-tutorial's Introduction

Tutorial on How to Build a Shopping Cart with NodeJS/ Express

This repository holds the source code of my YouTube series on how to create a shopping cart with NodeJS/Express/MongoDB

nodejs-shopping-cart-tutorial's People

Contributors

smax22 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  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

nodejs-shopping-cart-tutorial's Issues

TypeError after running node ProductSeeder.js

internal/modules/cjs/loader.js:631
throw new ERR_INVALID_ARG_TYPE('id', 'string', id);
^

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received type undefinedd
at Module.require (internal/modules/cjs/loader.js:631:11)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (D:\ICT-Beta-master\shop\seed\ProductSeeder.js:2:15)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:266:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)

adding data to database not working

When I click the SignUp button the server just keeps on loading and gives no response. I'm stuck. Please help. Also in the end says : "localhost did not send any data ERR_EMPTY_RESPONSE".

Adding products in database causing issue.

When I add a new document to the Products collection, it causes this problem in execution

untitled

I found that's about the chunkSize variable in the shopping/routes/index.js file, that variable must contain exactly the number of products saved in the database, so to keep my app executable, I must manually change the value of chunkSize and every single n equal to that variable (also equal to number of documents in Products collection) after insertion of new product(s), or I can count the number of the docs in that collection with a mongoDB count methods, but this issue is also related to pagination which is not covered in the tutorial, so basically, if I solved the issue of the execution error, I will have another problem, for example if I have 1000 products in the database, they will be shown in a single page, which is inconvenient.

Error handling

Hi Max,

how the errors to be handled like internet issue, payment decline etc..

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.