Giter Site home page Giter Site logo

100-days-of-web-development's People

Contributors

maxschwarzmueller 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

100-days-of-web-development's Issues

I do not have the zsh option on my git setup

I do not have the zsh option on my git setup, it shows as PowerShell and I was wondering if you could help me, I would prefer to use zsh and follow along with the class exactly as instructed. Thank you very much!!

For route "/posts/:id/edit" projection on Db doesn't work(gets everything about a post.)

In branch 26.nodejs-mondodb ,in 06-updating-documents/routes/blog.js,
in the blog,js file we created a GET route "/posts/:id/edit" to get a specific post from the post collection so that we can later populate a 'update-post' html page for the users to edit their posts.

We used projection in the find() method to only get a few parts from a post.Because getting all parts of a post is not necessary.But the projection is not working.It is getting all the information about a post.

For example:
Here we set the projection to get only title,body and summary.But when I console log it I get all the infromation about a post!!
Is there something wrong with the projection??

2022-09-14_16-03
ok

Error in Carts in WDE project

When the customer is logged in : If he goes to cart section weather the cart is empty or not he gets a buy products button thats ok but if the cart is empty the buy products button should render shop page to buy some products instead it places a order with no cost without any products and takes to the orders page.

Please fix this bug as soon as possible

Got error on blog.js when inserting documents (Section 26/ Insert Documents)

I was getting this error:

BSONTypeError: Argument passed in must be a string of 12 bytes or a string of 24 hex characters or an integer
    at new BSONTypeError (/home/mtonon/Web Dev/mongodb-page/node_modules/bson/lib/error.js:41:28)
    **at new ObjectId** (/home/mtonon/Web Dev/mongodb-page/node_modules/bson/lib/objectid.js:67:23)
    at /home/mtonon/Web Dev/mongodb-page/routes/blog.js:28:20

Then I found a solution on forums, just use .trim() on const authorId to remove any extra blank space:

router.post('/posts', async function(req,res){
  const authorId = new ObjectId(req.body.author.trim()); 

If someone is getting the same error, this worked for me!

Error in Carts

When a customer is logged in and navigates to the cart section, they are presented with a "Buy Products" button. This functionality is appropriate when the cart contains items. However, a critical issue arises when the cart is empty. Instead of directing the user to the shop page to select and purchase products, the system erroneously proceeds with a cost-free order submission, devoid of any products, ultimately leading the user to the orders page.

To ensure a more professional and user-friendly experience, the system should be enhanced as follows:

  1. When the customer is logged in and accesses the cart section, if the cart contains items, the "Buy Products" button should be displayed as intended.

  2. In the event that the cart is empty, the "Buy Products" button's behavior should be adjusted. Instead of proceeding with an order submission without products, it should direct the user to the shop page, enticing them to explore and select items for purchase.

By implementing these improvements, the system can deliver a more intuitive and seamless shopping journey, providing users with the opportunity to browse and buy products from the shop page when their cart is empty, while maintaining the conventional purchase functionality when items are present in the cart.

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.