#04 CRUD App With Image Upload Using NodeJs, ExpressJs, MongoDB & EJS Templating Engine

preview_player
Показать описание
Hello friends! I'm developing a CRUD Application with Image Upload using NodeJs, Express Js, MongoDB, and EJS Templating Engine.

This is the 4th video of the series in which I'm showing you how to insert a record into the database with image upload and also how to fetch all the records from the database and display on the home page.

In this project, I'm using the following:
1. Node JS (Core)
2. MongoDB (Database)
3. Express Js (Framework)
4. Mongoose (Object Data Modeling - ODM)
5. EJS (Templating Engine)
6. Multer (Image Uploading)
7. Dotenv (Environment Variables)
8. Express Session (Session Messages)
9. Nodemon (Local development)
10. Bootstrap 5 (Designing)
11. DataTable (Pagination)
12. Fontawesome (Icons)

#crud_app_nodejs_mongodb
#crud_express_mongodb_ejs

**********************************************************
If you like my works and my video tutorials then you can donate me some amount.
**********************************************************
**********************************************************

**********************************************************
"Themarketingboy" delivers a prominent strategy for a complete branding and make your website's visitors into customer. We are expert in helping business with the solution of UI-UX Designing, Website Development, Mobile App Development, SEO, SEM, Google Ads, Social Media Ads, Bulk SMS, Bulk Whatsapp, e-Mail Marketing and more.

For more info click the link👇

Can make a call on👇
India: +91 880-420-0340 USA: +1(832)378-9240
**********************************************************

Thanks for watching this video. If you like this video then hit like button, share this video, And Subscribe my Channel. Also, like my Facebook page for the latest updates.
**********************************************************
**********************************************************
Рекомендации по теме
Комментарии
Автор

I tried so much days to find tuis problem image recieving now i find it thank you

muhammedashiq
Автор

Awesome! Thank you so much...
Watched many vedio's, but couldn't understand..
This was simple and neat.

jeslinjaisan
Автор

throw new no longer accepts a callback'); pls idea tell

DossYuvi
Автор

i followed each and every step from this video. But when i insert data into DB, it failed to save everytime. But value are stored into the model.

Erroe is: "message": "car_detail validation failed: color: Cast to Number failed for value \"white\" (type string) at path \"color\", carDiscription: Cast to Number failed for value \"good\" (type string) at path \"carDiscription\"",
"type": "danger"

Anyone can help?

ankitpartap
Автор

If you are watching this in 2024, probably got the issue: Model.prototype.save() no longer accepts a callback
you can solve this with the then/catch method instead of the callback inside of save

the code that solves the issue:
user.save().then(()=>{
req.session.message ={
type: 'success',
message: 'user added succesfully!'
};
res.redirect('/');
}).catch((err)=>{
res.json({message: err.message, type:'danger'});
});

Hope it helps

jonathangalvez
Автор

The image can't be displayed on my page

nnamdiemelu
Автор

can you please provide your github repo link of this

VaibhavC-cobi
Автор

Error

Cannot read properties of undefined (reading 'filename')

andymarsh
Автор

I have been following your tutoria video on ejs but I ran into problems of User not defind in the router configuration where you declared a constant as follows
Const User = require ('../modules/users');
The above line of statement stops my node from running, but when removed everything comes back to normal. Meanwhile I can submit User entry. It says User not defined. Please help. 😢

ajimchima
Автор

please what's is the name of this font

TochiFelix
Автор

Why am I not getting data in mongodb but only id is created

hershey
Автор

What's the vs code theme used in this tutorial?

sumanth
Автор

show this error "users is not defined" when write if condition in ejs file

VillageFood
Автор

can someone help with the filename error

mehakjotkaur
Автор

why i cant redirect to my home page somebody help me

technogadget
Автор

bhai vo intro ka volume kam rakho yaar, kaan fat jate hai, baki content achha hai.

mayurhalli
Автор

I am getting type error filename what to do . To rectify

hunterassassinyt...
Автор

bro you should share source code otherwise you'll lose subscribers. too bad.

nightfall
visit shbcf.ru