academind / 100-days-of-web-development Goto Github PK
View Code? Open in Web Editor NEWSupplementary resources for our complete web development course (https://acad.link/web-dev).
License: Other
Supplementary resources for our complete web development course (https://acad.link/web-dev).
License: Other
i cant dowload the files and resources like images,font........
I can not connect to the database it showing error
01-getting-started branch doesn't exist and the link to it in branch 02-html-css-basics give 404 error
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
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:
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.
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.
Link below yields a 404 error message:
For example, the branch 01-getting-started belongs to the first course section "Getting Started".
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??
Change from:
Line 19: storedRestaurants: storeRestaurants
Change to:
Line 19: storeRestaurants: storeRestaurants
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!!
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.