Build a Recipe Blog using Node.js and MongoDB (Express, EJS, Mongoose & more...) CRUD

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 352

  • @RaddyDev
    @RaddyDev  2 года назад +23

    I hope that you enjoy this video as much as I did making it. This was my first time using MongoDB and I really enjoyed using it. Nearly 10K Subs!!! Subscribe friends!

    • @zackOverflow
      @zackOverflow 2 года назад +1

      I love your work Raddy you are doing a great job but there's something I like to point out if you'll let me. Try to require your modules, create your modules, create your folders and files as you need them or when you need them rather than as you will need them or before you need them, that way it makes it easy for the viewers to understand the need for requiring such module or creating such folder or file at that particular time. By the time you required all the needed modules, create all the needed folders or files at the beginning of your tutorial, it makes it difficult to understand what they do by the time you are using them later in the tutorial. Thanks Raddy for the video I love your work and I hope this makes sense.

    • @RaddyDev
      @RaddyDev  2 года назад +1

      @@zackOverflow Thanks, Zack! It makes sense and it's a valid point. I am glad that you said it. Thank you!

    • @sarvarbekkhamidullayev1325
      @sarvarbekkhamidullayev1325 2 года назад

      my code doesn't work. actually after render static files doesn't work

    • @RaddyDev
      @RaddyDev  2 года назад

      @@sarvarbekkhamidullayev1325 What is the error that you get?

    • @user-ig9ug5eu8b
      @user-ig9ug5eu8b 5 месяцев назад

      how can i get the dymmydata please ....which website did you copy it from

  • @syedalizain4223
    @syedalizain4223 Год назад +4

    I normally don't comment on videos but mannn this tutorial is awesome. I learnt a lot of new stuff like connect-flash and ejs-layout. Excellent!

    • @RaddyDev
      @RaddyDev  Год назад +1

      Glad you liked it and thanks for the support! Comments are helpful for smaller creators like myself

  • @mrabir4487
    @mrabir4487 2 года назад +4

    this is the tutorial i was loking for so long.... i can't thank u enough for this video

    • @RaddyDev
      @RaddyDev  2 года назад

      A nice comment like this is good enough for me. Thank you and I am glad that you found the video. I hope that you find it useful

  • @samarth319
    @samarth319 2 года назад +3

    I just wanna say thank u. You have immensely helped me in speeding my Node learning at my full time job as I am a new Dev... Again Thanks man really appreciate it!!

    • @RaddyDev
      @RaddyDev  2 года назад

      Glad to hear that the tutorials are helping! I hope that you enjoy your job and have a successful career 👊😎

  • @psf021
    @psf021 Год назад +2

    So well done! I get so overwhelmed with the flow of NodeJS and knowing how things connect and where they go. You make it seem easy! Great job and great project. I'll definitely be using this!

  • @mukizaemma6590
    @mukizaemma6590 2 года назад +10

    I would like to thank you so much Raddy, your resources have encouraged me to dive into full-stack development and I am grateful for what I have managed to do within only one month following your Vue js and node js tutorials. However, if you could do a video with a full vue JS & node js app having a frontend and backend panels with user registration, login, and redirecting to admin dashboard with routes protected would be hepful. I am really struggling to put togather all the required resources to make such a full-stack application. Thank you!

    • @RaddyDev
      @RaddyDev  2 года назад +3

      Hey, Mukiza! Thanks for the comment. I am thinking about it, but building a full-on registration without cutting corners is a lot of work. I don't mind putting in the work, but it's just finding the time. Thanks for the suggestion, I will look into it

    • @mukizaemma6590
      @mukizaemma6590 2 года назад

      @@RaddyDev Thank you a lot. I can't wait for that.

  • @SimPwear84
    @SimPwear84 2 года назад +4

    Your content is amazing. I love the fact that your cover different tech like WP, React, Node and Express. This is what I use as well and you videos helped a ton in my journey. Thank a lot and looking forward to future videos.

    • @RaddyDev
      @RaddyDev  2 года назад +1

      One of my big worries was that I cover a wide variety of topics. I assumed that most people are here for one thing only. I absolutely love exploring different ways of doing things. It makes web design and development so much more interesting. I am really glad that you think this way and I really appreciate you saying this. Thank you, Simphiwe! I hope that you have a great weekend

  • @ebesquin
    @ebesquin 2 года назад +2

    Dear Raddy,
    Thank you very much for your great effort in the elaboration of this magnificent tutorial.
    It is a complete, simple and very illustrative explanation.
    THANKS A LOT

    • @RaddyDev
      @RaddyDev  2 года назад +1

      Thanks for the nice words, Eduardo! I appreciate it

    • @muawyaadeel7794
      @muawyaadeel7794 2 года назад

      can u please send me the source code link..?

    • @RaddyDev
      @RaddyDev  2 года назад

      I just answered your comment on my blog. The link to the source code is at the bottom of the article. It says "Download on GitHub". You can then download as zip or clone the repo

  • @buraxta_
    @buraxta_ Год назад

    for those who have layout problem in the "Main Layout" section: Just change tag with . it worked for me.

  • @Hondasankimanaconda
    @Hondasankimanaconda 2 года назад +2

    Hey Raddy, really appreciate your effort and quality tutorials. Thanks a lot!

    • @RaddyDev
      @RaddyDev  2 года назад +1

      Glad you like them!

  • @benitamichael6856
    @benitamichael6856 11 месяцев назад

    I've been looking for a project that ties all my current learning, and this is just perfect. Thank you

    • @RaddyDev
      @RaddyDev  11 месяцев назад

      Glad it was helpful!

  • @buraxta_
    @buraxta_ Год назад

    Your video has been incredibly informative and enlightening. I cannot thank you enough for sharing such valuable insights and knowledge. It has truly been a pleasure learning from you.

    • @RaddyDev
      @RaddyDev  Год назад +1

      Thank you, Buraxta. Happy to hear that you found the tutorial informative

  • @azizulislamtushar846
    @azizulislamtushar846 9 месяцев назад

    Thank you for the fantastic tutorial! Your explanations and examples helped me build the project without any problems. Much appreciated! 👏

  • @LyricsTunes-x
    @LyricsTunes-x Год назад

    Hey Raddy, really appreciate your effort and quality tutorials. Thanks you brother

    • @RaddyDev
      @RaddyDev  Год назад

      I appetite you saying that, Ayoub. Much appreciated

  • @sara-bp7bc
    @sara-bp7bc 2 года назад

    Excellent tutorial, I cannot thank you enough for how much you've helped me. Instant subscribe!

  • @jahnvithombre2647
    @jahnvithombre2647 2 года назад

    Thank you so much I was looking for such project from many time 😊

  • @techfinace
    @techfinace 2 года назад

    Finally what I was looking for

    • @RaddyDev
      @RaddyDev  2 года назад

      Glad to hear that, Sizwe!

  • @arjunshaji8856
    @arjunshaji8856 Год назад

    This really worth for me !!! thank you dear sir for a amazing tutorial. Thanks a lot

  • @mainul__islam
    @mainul__islam 2 года назад +1

    Awesome work, really appreciate your efforts ♥♥

    • @RaddyDev
      @RaddyDev  2 года назад +1

      Thank you, Mainul! I appreciate your comment

  • @omkarmore1170
    @omkarmore1170 6 месяцев назад +2

    throw new Error(msg);
    ^
    Error: Route.get() requires a callback function but got a [object Undefined]
    this error is occuring when npm start command run please give the solution

  • @MasterwaveTech
    @MasterwaveTech 2 года назад +1

    Thanks you sir, you really do a great work.
    God will reward you sir

    • @RaddyDev
      @RaddyDev  2 года назад

      Thank you, Master Wave! I appreciate that

  • @khaledkhawajki3830
    @khaledkhawajki3830 2 года назад +1

    Thanks a lot for this helpful content! ❤❤👏👏

    • @RaddyDev
      @RaddyDev  2 года назад +1

      Thank you, glad that you found it helpful! 🔥

  • @speedybenzedrex6786
    @speedybenzedrex6786 2 года назад

    Amazing tutorial! Thank you so much for this content

  • @ctrl-alt-del0
    @ctrl-alt-del0 Год назад

    Thanks for your efforts!

  • @balizaz
    @balizaz Год назад

    Absolutely incredible! Thank you so much and Keep going on 😄

  • @javacontinental
    @javacontinental 2 года назад

    Thank you so much bro, I really appreciate your content

  • @slovakmonkey2766
    @slovakmonkey2766 2 года назад

    This helped me a lot! thanks!

  • @nadeemakramansari1331
    @nadeemakramansari1331 5 месяцев назад +1

    This is what I want actaully. Everyone is on for MERN but I want to use EJS. Can you please make a e Commerce video based on ejs, express, node, mongoose but not React.js

  • @rohandhepe5758
    @rohandhepe5758 Год назад

    Raddy your blog recipe video helpfull for my website create Thanks.

  • @ncv-nocopyrightvideos4475
    @ncv-nocopyrightvideos4475 2 года назад +3

    Sir your videos are really amazing but can you plz make a video on complete blog system like, User Login/Register, Admin Login, Admin panel for uploading new blogs, same as Wordpress but in NodeJs, Express, mongoDB/mysql and user can apply to become author such type of website sir plzz❣❣❣❣

    • @RaddyDev
      @RaddyDev  2 года назад +1

      Thanks, NCV! I would love to do that, but it would take so much time to make and record. It's defiantly something that I am thinking about... thanks for the suggestion and nice comment!

    • @ncv-nocopyrightvideos4475
      @ncv-nocopyrightvideos4475 2 года назад

      @@RaddyDev Thank You sir💯🙈🙈

    • @mukizaemma6590
      @mukizaemma6590 2 года назад +1

      @@RaddyDev I really have the same request. That would be helpful for us to dive into full-stack development.

  • @ramendrasoni3368
    @ramendrasoni3368 2 года назад +2

    Can u please make it complete with everything...and the functionality that everyone has to login before submitting the recipe or you can say secure admin panel with...
    I will pay you whatever you demand...

  • @ss71056893
    @ss71056893 Год назад

    I really like your tutorial^^

  • @rahulsati5819
    @rahulsati5819 Год назад +2

    awesome

  • @canicecodes
    @canicecodes Год назад

    Thank you very much, I loved the video

    • @RaddyDev
      @RaddyDev  Год назад

      Glad you enjoyed it!

  • @shirlynewanjiku7152
    @shirlynewanjiku7152 7 месяцев назад +1

    Thank you

    • @RaddyDev
      @RaddyDev  7 месяцев назад +1

      You're welcome

  • @ahmedahmedx9600
    @ahmedahmedx9600 2 года назад +1

    Hi raddy, what a nice tuto !! Thanks, can you tell me which theme you are using ??

    • @RaddyDev
      @RaddyDev  2 года назад

      Thanks, Ahmed! The theme I am using is called Dracula. It's the free version

  • @Darshith-e6x
    @Darshith-e6x 3 месяца назад

    How to add delete and update recipe option to this

  • @macshawn4057
    @macshawn4057 2 года назад

    Dope content 🔥🔥🔥

  • @purvika_jagtap
    @purvika_jagtap 6 месяцев назад +1

    Can you also add the feature of google sign up & adding a saved recipes page please along with the feature to share it?

    • @RaddyDev
      @RaddyDev  6 месяцев назад

      I probably won't be adding more features to thing project, but I'll have those features in mind for future ones

  • @AliKhan-ri5fk
    @AliKhan-ri5fk 2 года назад

    thank you so much explaining in detail how to register an account for mongodb.
    ps this is sarcasm

    • @RaddyDev
      @RaddyDev  2 года назад

      Hey Ali, there is no need to be sarcastic. I am open to feedback and I am always happy to help.
      I thought that, signing up to MongoDB is straight forward. All you need to do is to click on their Sign In button and register using Google, GitHub or Email. Google and GitHub require one click to sign up.
      The Email method requires your Email Account, First name, Last name and Password. Enter your details and you should be good to go.
      I hope this helps :-)

  • @nexisnightcore5403
    @nexisnightcore5403 Год назад

    Amazing thank you

  • @prathamrawat6298
    @prathamrawat6298 2 месяца назад

    hello sir , You really solved a lot of problems of mine, I just wanted to know when we are displaying specific dishes with routes /categories/thai or any then how is it showing as we have created route of this /categories/:id ?

  • @aristaae2532
    @aristaae2532 3 месяца назад

    Hello Raddy, I would like to thank you for making this video because the video really helped me. but I want to ask why the image in my coding can't be set to be smaller? the image exceeds the container

    • @RaddyDev
      @RaddyDev  3 месяца назад

      It could be because of the node modules folder. Normally that's installed when you deploy

  • @justcodeitbro1312
    @justcodeitbro1312 Год назад +2

    MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string. please help me i am getting this error

    • @sourenamoradi5195
      @sourenamoradi5195 Год назад +1

      hey i got it too, did you fix it?

    • @nerd7833
      @nerd7833 Год назад +1

      move the. .env file to the root file i.e in the CookingBlog project folder and not in the views folder

    • @zit802
      @zit802 Год назад +1

      does anyone fix it already :( help me

    • @RaddyDev
      @RaddyDev  Год назад

      Create the .env file in the root directory and add the mongodb URL

  • @muhammedmishab3598
    @muhammedmishab3598 2 месяца назад +1

    thanks💌

  • @Andre-df3mu
    @Andre-df3mu 8 месяцев назад

    do you know how to making delete and update by pressing button on that recipe blog . i've been trying to make it but always fail

  • @PhongTran-mg8yh
    @PhongTran-mg8yh 2 года назад +1

    Thank you so much, it helps me a lot, but could you let me know how to use the cloud to save images that the user uploads? Especially Cloudinary

    • @PhongTran-mg8yh
      @PhongTran-mg8yh 2 года назад +1

      Oh, I did my own research and succeeded

  • @user-jq8yi3wj8n
    @user-jq8yi3wj8n 2 года назад

    Amazingly helpful & great work! I was just wondering if anyone could drop the code that would make one able to update and delete recipes from the app itself, and not the code? Would be greatly appreciated but other than that, great job!

  • @frosty_teacup
    @frosty_teacup 2 года назад

    Hi Raddy, I'm having some issues with the MongoDB/Categories part. I've managed to set up the connection (the Recipes database and Categories collection appears in my MongoDB account, but it is empty and there is no data), but it stops working for me during the dummy category data stage.
    I've looked over the video and code in the GitHub files multiple times, but I can't seem to figure out where it's going wrong. Do you have any idea what might be happening? Thanks in advance :)

    • @RaddyDev
      @RaddyDev  2 года назад

      Did you add your IP to the Network Access page? Could you log out any errors. Hopefully the errors will give you an indication of what is happening

  • @ramendrasoni3368
    @ramendrasoni3368 2 года назад

    Images do not display from database..

  • @TheNamesJT
    @TheNamesJT 2 года назад

    Where can you find the mongodb docs that show you code that can be run in js scripts. I can only find shell and mongosh documentation.

    • @RaddyDev
      @RaddyDev  2 года назад +1

      Hello, Try - mongoosejs dot com/docs/

  • @beautifulalgorithm7292
    @beautifulalgorithm7292 2 года назад +1

    hello, that was awesome, but i need the update Recipe? how can i get them>

    • @beautifulalgorithm7292
      @beautifulalgorithm7292 2 года назад +1

      thank you Raddy

    • @RaddyDev
      @RaddyDev  2 года назад

      It's kind of tricky to explain but I will try.
      To update a record you need to create a form with all fields required. You have to do a query to the database and pull the record data that you wish to update. Use that data to populate the fields. Once the fields are there you can use the form to post the data back and use the updateOne method. Next time I make a video with MongoDB I will include everything for sure

  • @omkarmore1170
    @omkarmore1170 5 месяцев назад +1

    Actually my mongodb is not getting connected the following error is coming please solve this
    connection error: MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.

    • @RaddyDev
      @RaddyDev  5 месяцев назад

      Make sure that you are using this format in your ENV: MONGODB_URI = mongodb+srv://:@cluster0.7oacavx.mongodb.net/MyDatabaseName

    • @omkarmore1170
      @omkarmore1170 5 месяцев назад

      @@RaddyDev Yeah I had make sure that i am using this format only even though its not working i had check so many times.Same error Occuring

    • @21-abhikhillare8
      @21-abhikhillare8 4 месяца назад

      @@omkarmore1170 same bro did you got the solution pls help me to

    • @RaddyDev
      @RaddyDev  4 месяца назад +1

      Copy the exact same string that mongodb gives you and replace the password

    • @21-abhikhillare8
      @21-abhikhillare8 4 месяца назад

      @@RaddyDev alreday did it m still getting same error

  • @ganeshrohit9566
    @ganeshrohit9566 2 года назад

    please do another web app video like this. this tutorial is very nice

    • @RaddyDev
      @RaddyDev  2 года назад +1

      Thank you, I will do that!

  • @love_hunter_coc
    @love_hunter_coc 2 года назад +1

    Sir More like this with blog website please sir upload that 🙏🏻♥️

    • @RaddyDev
      @RaddyDev  2 года назад +1

      Glad that you like it! I am definitely looking forward to make more projects like it

    • @love_hunter_coc
      @love_hunter_coc 2 года назад

      @@RaddyDev thank you sir ♥️

    • @priyankaroberts1093
      @priyankaroberts1093 2 года назад

      Hey Abhishek ! Have you made a projects lately with react ? Are you open to internship/job opportunities currently ?

  • @eren_korkmaz
    @eren_korkmaz 2 года назад

    Hi, how can we do this using handlebars. For example, the category if condition in 1:20:00. handlebars not has a if condition like ejs

    • @RaddyDev
      @RaddyDev  2 года назад

      With Handlebards is a little bit easier. You can do:
      {{#if categories}}
      {{/if}}
      If you want to do a loop you can do:
      {{#each categories}}
      {{this.name}}
      {{/each}}

  • @kunjapper
    @kunjapper Год назад

    I'm getting an error on category.js. "TypeError: mongoose.model is not a function". Followed all your steps exactly and compared it to your git. Can't see what's wrong here.

    • @RaddyDev
      @RaddyDev  Год назад

      I will look into this later on today to see if I can help

  • @alfiamujawar698
    @alfiamujawar698 2 года назад

    Hey i am confused in the beginning part the folders and files part unable to understand which are folders and which are files please explain

    • @RaddyDev
      @RaddyDev  2 года назад

      Hey Alfia, files usually have an extinction behind them. Anything with .ejs, js, css and so on are the files. The top-level folder are "public, server, views" and inside them, we have a few more such as layouts, controllers, models, routes and so on. I hope this helps

  • @alimokdad6865
    @alimokdad6865 2 года назад +1

    Great video, I'm creating an article website but can't figure out how to store articles and how to create them to submit, since articles have different structures and image placements, hope you can help

    • @RaddyDev
      @RaddyDev  2 года назад

      It would be more or less the same. You could have a "Posts" table and that table would have fields such as Title, Slug, Thumbnail, Body, Category and so on... One thing that I would suggest is to add a "slug" so you have friendly URL's for your articles. I am considering doing a video on it

    • @alimokdad6865
      @alimokdad6865 2 года назад

      @@RaddyDev what i mean that one article can have 10 images while other articles have only one or two , or 7 and so on
      How can i create a sumbit system that can adapt to this
      I was thinking of storing the images in an outside storage and submit html code with the images links to store it in the db

    • @RaddyDev
      @RaddyDev  2 года назад +1

      That makes sense. Store the images anywhere you like and just store the names in your DB. I guess it depends on where you want to store the images. You'll have to follow their instructions and the database bit will be exactly the same as the video.

  • @marksia188
    @marksia188 2 года назад

    This is very helpful. I am having a hard time using the update method with forms.. I have no idea how to use the code that you mentioned at the end of the video.

    • @RaddyDev
      @RaddyDev  2 года назад +1

      Hey Mark, let's say that you create an update-recipe page. That page will have an HTML Form with all the fields required for the recipe. The idea is that you can go to the database, grab a recipe by id and populate the fields from the database. Now that you have the HTML inputs with the data in them, you can manually update them by writing whatever you want. The next bit is where you click submit and the data is posted to the server. This is where the update query example kicks in. It's kind of hard to properly explain, but I hope this helps. I do have another tutorial which shows how the update works, but it's using SQL instead. I will need to create something soon to show everything

  • @dimitardenev2817
    @dimitardenev2817 5 месяцев назад

    Uhh how do I may add more categories in the future like lets say Bulgarian or Japanese? Also Thank you very much for the useful tutorial :D!

    • @RaddyDev
      @RaddyDev  5 месяцев назад

      Благодаря за коментара. За сега няма административна страница, но с малко усилия нещата ще станат.

  • @sanyamgrover1627
    @sanyamgrover1627 6 месяцев назад

    Please reply asap
    On inserting data to mongodb by using category.insertMany() function, it's showing "listening to port 3000 but err NaN"
    I'm not able to create databse and collection on cluster.
    Help me out.

    • @evanilsonp.9900
      @evanilsonp.9900 6 месяцев назад

      Send me your rep

    • @RaddyDev
      @RaddyDev  6 месяцев назад

      You can go to MongoDB and insert the data from there as JSON if that helps

  • @user-tt6ch7bn4n
    @user-tt6ch7bn4n 3 месяца назад

    hello raddy whats this error {"message":"text index required for $text query"}

    • @RaddyDev
      @RaddyDev  3 месяца назад

      I have the feeling that this comes from your search query. Can you double check it, as you might not be passing the search term properly. Maybe a typo...

  • @pawangaming704
    @pawangaming704 2 года назад

    Hey, I am getting error of port not defined in app.js. And I have also copied your app.js then also it is showing error, port not defined. Please help me!

    • @RaddyDev
      @RaddyDev  2 года назад

      That's strange. So do you have:
      const port = process.env.PORT || 3000;
      app.listen(port, ()=> console.log(`Listening to port ${port}`));
      in your app.js? You could try different port number

  • @abdulalshatti9914
    @abdulalshatti9914 2 года назад

    the best

    • @RaddyDev
      @RaddyDev  2 года назад +1

      I appreciate it, Abdul. Thank you for watching

  • @wafialfaruqhi6860
    @wafialfaruqhi6860 Год назад

    Can someone help me, I have a problem when insermany it uploads it to the mongodb but the array is empty eventhough I put in array of strings inside ingrididents

    • @RaddyDev
      @RaddyDev  Год назад

      Hey, are you trying to insert the Dummy demo data? You can copy the array and insert it all from MongoDB. That would be much easier and also it will tell you if you have any errors in the in your json

  • @dordim
    @dordim 2 года назад

    Hey, first of all thanks for this great project. I love it.
    I have one question. Is it possible to deploy this project to Netlify ?

    • @RaddyDev
      @RaddyDev  2 года назад +1

      As far as I know, Netify is only for static sites. There is an option for Cloud Functions that should work if you want to make an API, but since this project is using EJS I don't think that it's going to work. Heroku is an option. They have a free tier for personal projects

    • @raghavpurohit4695
      @raghavpurohit4695 2 года назад

      hey today i was deploying the project on heroku but got many errors . were u able to host it ?? if so ,, pls tell me how to solve this

  • @aniruddh515
    @aniruddh515 Год назад +2

    this ( connection error : MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string
    if ur getting this error just go to servre->models->database.js->replace env.mongodb with ur mongodb url there itself

    • @21-abhikhillare8
      @21-abhikhillare8 4 месяца назад

      same is with me did you got the solution ?if you did help me bro

  • @velmuruganr9321
    @velmuruganr9321 2 года назад

    Really good work...but it'd be better if you show some kind of flowchart for the entire project...its not easy to picture the concept

    • @RaddyDev
      @RaddyDev  2 года назад +1

      Thank you and I totally agree. I will do that next time - thank you for the feedback

    • @velmuruganr9321
      @velmuruganr9321 2 года назад +1

      No issues brother....

  • @noahredford4110
    @noahredford4110 Год назад

    How would you be able to add a way to have the user submit the recipe form, have it come to you, and approve or deny the submission rather than it automatically posting? I love the video by the way!

    • @RaddyDev
      @RaddyDev  Год назад +1

      To start with you have to create a form with fields matching the Recipe Schema.
      The idea is that on submitting the form you grab the data from the inputs and save them into the database.
      Just like we used the .find() method in this tutorial, you can use .create() and insert data.
      For approval, you could have a status filed for the recipe. On submit, the default status could be "pending". Then the easiest way would be to do it from the database, otherwise, you'll have to build the admin menu. You don't want everybody to be able to approve. Then you have to change your display recipes query to only display recipes that have the status of "approved". That's the theory.
      I have done two new tutorials where there is a form submission. You can skip to that part or look into the code on GitHub. One is creating the new "CRUD user management system..." and the other one is "build a notes app using nodejs...."

  • @achomaduonyinye3798
    @achomaduonyinye3798 2 года назад

    err NaN
    listening to port 3000,i get this error after inserting my dummy data and i cant find the error

    • @RaddyDev
      @RaddyDev  2 года назад

      That's very generic and and it's hard to tell. Could you be a little bit more specific, when does it happen - which peace of code creates the error? Hopefully I'll be able to point you in the right direction. Also the code is available on github for you to reference

  • @likhithadoddi4885
    @likhithadoddi4885 8 месяцев назад

    Hi raddy if we follow same process as you told and do this website in our system is it work or not

    • @RaddyDev
      @RaddyDev  8 месяцев назад

      What system is it?

  • @lokendrasahare9398
    @lokendrasahare9398 3 месяца назад

    I want to deploy this project, how can i deploy it , someone can help me?

  • @guillermofernandez6974
    @guillermofernandez6974 Год назад

    Hi raddy why is this error ? -> {"message":"Operation `categories.find()` buffering timed out after 10000ms"}

    • @RaddyDev
      @RaddyDev  Год назад

      I wonder if you need to put categories.find({}). Can you show me your code where you think this is coming from?

    • @guillermofernandez6974
      @guillermofernandez6974 Год назад

      @@RaddyDev
      exports.homepage = async(req,res) =>{
      try {
      const limitNumber = 5;
      const categories = await category.find({}).limit(limitNumber);
      res.render('index', {title: 'Cooking Blog - Home',categories});
      } catch (error) {
      res.status(500).send({message:error.message || "Error Ocured"})
      }
      }

  • @queerly__coded
    @queerly__coded 2 года назад

    It's unfortunate you didn't include to recipe schema you used and the files for the upload folder. Makes things more challenging to follow along at any pace. Not impossible just a bit of a frustration.

    • @RaddyDev
      @RaddyDev  2 года назад

      I understand... I will try to find royalty free alternatives and upload them including the data :)

    • @RaddyDev
      @RaddyDev  2 года назад

      I've uploaded new images and the MongoDB data in the main repo 🙂

  • @TheNamesJT
    @TheNamesJT 2 года назад

    2:29:49 couldn't we just loop through the category collection and get the name of each category?

    • @RaddyDev
      @RaddyDev  2 года назад

      Yeah you can do. That's actually a pretty good idea, it makes everything a little bit more dynamic instead of having to change it manually.

  • @coolcarlatv2944
    @coolcarlatv2944 2 года назад

    Much better if you added button for edit update

  • @scottnguyen4521
    @scottnguyen4521 2 года назад

    I was doing a project kinda like this one but I use JSON as my database I do the search part it got an error 2:06:40 it was not working, does anyone know why?

    • @RaddyDev
      @RaddyDev  2 года назад +2

      Since you are using a JSON as a DB, you will have to use another approach to search. The "find()" function is a filter specific to Mongoose. You will have to build your own find in JSON script. I think that there are a lot of simple-ish examples on the internet

  • @demosehjotsinghpannu
    @demosehjotsinghpannu 9 месяцев назад

    I am facing a problem how can i get the data for each dish like the Ingredients, email, image, category, etc. I am unable to get that data, can you please help me in getting that. Would really Appreciate.

    • @RaddyDev
      @RaddyDev  9 месяцев назад

      Of course. What is happening? Do you get any errors? The Github repo is linked in the description of the video if you wish to reference and double check the code

    • @21-abhikhillare8
      @21-abhikhillare8 4 месяца назад

      Getting error my db is not connecting

  • @greghawthorne8949
    @greghawthorne8949 2 года назад

    Great tutorial and easy to understand, thank you. Wondering what the best way would be to incorporate hyperlinks for the content in the description field. Do you think this can be done directly in MongoDB?

    • @RaddyDev
      @RaddyDev  2 года назад

      Thanks, Gred! Yes, absolutely it's possible. Nothing stops you from allowing HTML to be inserted into your DB. You can use express validator and sanitize HTML to clean it up before it goes into the database, but I am not sure how effective that would be. It might be okay depending on what you do

  • @CarpMasterFishing
    @CarpMasterFishing 2 года назад

    Hello! Can you help me please, that what will be the problem for me? When you click at 1:50:20 to the recipe, my page is loading for the infinity, not loading to the recipe page. After if i put the next code to the recipe.ejs what you have at 1:51:18 then i got a message: {"message":"fn is not a function"}. Did you know, what will be the problem for that? Is something missing for me to install in the powershell? Thanks before you help, aweseom project!

    • @RaddyDev
      @RaddyDev  2 года назад +1

      That's a strange one. I was just looking online and someone on StackOverflow suggest installing the latest Node.js.
      npm install -g npm stable
      npm install -g node
      If you go on the link in the description that will lead you to my blog and GitHub. Have a look at the code I've got and hopefully that would help

    • @CarpMasterFishing
      @CarpMasterFishing 2 года назад

      @@RaddyDev Thank you for the reply! I tried to do this, but i started this project 2 days ago so i have the latest one. But at this time I tried with your code, i downloaded from github, made the .env file with the connection to mongodb and now its working fine, so it should be my mistake, i will try to fix it with your code. Thank you to sharing with us, helping me a lot with this, keep going! :)

  • @vishalpatil4983
    @vishalpatil4983 Год назад

    Hello Raddy sir,
    At 1:05:18 i am gettinf error of this ( connection error : MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.) plz help i am struggling from 5 hours.

    • @RaddyDev
      @RaddyDev  Год назад

      Hey Vishal, the error is saying that MongoDB is not getting the connection string. The reason for that could be that you haven't configured .env or you have a typo. Make sure that you have MONGODB_URI= (remove any spaces) and then
      mongoose.connect(process.env.MONGODB_URI ...
      You can try: mongoose.connect(process.env.MONGODB_URI

    • @vishalpatil4983
      @vishalpatil4983 Год назад

      Thank u Sir it worked but now data is not inserting into mongodb Recipe database

    • @RaddyDev
      @RaddyDev  Год назад

      You can try to get the data and insert it manually into That's a good option. Look around for an "insert" button when you browse the database

  • @animesh414
    @animesh414 Год назад

    the images which are in github are giving some issue when we want to download the images.

    • @RaddyDev
      @RaddyDev  Год назад

      What happens? There is a file inside public/uploads containing the photo credits with the links. Maybe try downloading them from there

    • @animesh414
      @animesh414 Год назад

      ​@@RaddyDevunable to download the images of img and upload folder .

    • @RaddyDev
      @RaddyDev  Год назад

      @@animesh414 That's strange. Try downloading from the credits. Or I could upload them somewhere else as well

  • @dimitardenev2817
    @dimitardenev2817 5 месяцев назад

    If I may inquire? How would be possible to add more categories in the future? Thank you !

    • @RaddyDev
      @RaddyDev  5 месяцев назад

      You'll need to add them manually through the database. You can make an admin panel with forms to add, update and delete, but obviously that would require a bit of work. You'll need some sort of a login system as well, unless you make a separate dashboard that you can run locally. I normally make an MVP and then work on the admin stuff later on as sometimes fileds/data can change (unless you plan well).

    • @dimitardenev2817
      @dimitardenev2817 5 месяцев назад

      @@RaddyDev how would i be able to integrate a simple login system into this blog?

    • @RaddyDev
      @RaddyDev  5 месяцев назад

      @dimitardenev2817 I did one for the NetNinja last year. It's fairly basic, but it does the job I guess github.com/RaddyTheBrand/25.NodeJs-Express-EJS-MongoDB--Blog

    • @21-abhikhillare8
      @21-abhikhillare8 4 месяца назад

      ​@@RaddyDev actually my mongodb is not getting connected the following error is coming please solve this
      connection error: MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.

  • @StefanKo1224
    @StefanKo1224 2 года назад

    Can u say me, how popular is node.js today, and how popular will be in future ? Is it good option to learn

    • @RaddyDev
      @RaddyDev  2 года назад

      It's very popular today, and my guess would be that is only going to grow. Have a look at the Stack Overflow Developer Survey 2021, it's quite interesting

    • @StefanKo1224
      @StefanKo1224 2 года назад

      @@RaddyDev I see that express is on third place of most popular web frameworks. Its good, i like node and express very much

  • @applemaysl
    @applemaysl Год назад

    Anyone else running into this error: node:internal/modules/cjs/loader:936 throw err; I've gone crazy trying to figure it out. Even went and downloaded his git file, but STILL ran into the error while trying to use nodemon start. Any tips?

    • @RaddyDev
      @RaddyDev  Год назад

      It sounds like you need to cd to your project folder and then run the project. If you are on Linux you might have to run it as an admin using sudo

  • @ramendrasoni3368
    @ramendrasoni3368 2 года назад

    and what is lazy loading...why it is..

  • @gauravmane5282
    @gauravmane5282 Год назад

    I unable download hero-image.png ,view-all .jpg ,publish-recipe.png plz provide

    • @RaddyDev
      @RaddyDev  Год назад

      You can find all of the images inside the GitHub Repo. If you click on the GitHub link in the description, you can go under 'public/img' and see them there. You could download the entire project and just pick the images that you want. Additionally I have added an editable PSD version of the Hero image - also link in description.

  • @coolcarlatv2944
    @coolcarlatv2944 Год назад

    Is there a edit and delete. Function?

    • @RaddyDev
      @RaddyDev  Год назад

      Not on this one. I've made other projects with edit and delete that you could check out. The Notes one has all that good stuff ruclips.net/video/BDo1lgaZuII/видео.html&lc=UgzjYzNW9El3tdQkWXZ4AaABAg

  • @ravichandrals4915
    @ravichandrals4915 Год назад

    Hello sir,
    While connecting MongoDB to node.js application i am getting this error in node_modules folder
    Error :
    => this.options = options ?? {}
    Any solution for this ?

    • @RaddyDev
      @RaddyDev  Год назад

      That's a strange one. You could install the latest NodeJs, then remove the node_modules folder and install again. See if that solves the problem. You should be able to do "npm install" in your main root.

    • @ravichandrals4915
      @ravichandrals4915 Год назад

      @@RaddyDev I am using windows 7 So I can install node.js version till 13.14 if I upgrade it won't works, my current version is 13.14. While connecting mongoDB through the Mongoose this error appears

    • @RaddyDev
      @RaddyDev  Год назад +1

      You could try using a browser IDE like Replit. You can get a free account and run the latest NodeJs on their editor.
      The other option would be to install Windows 10 or something like Ubuntu.
      It's a tough one... Replit is a good option :)

    • @ravichandrals4915
      @ravichandrals4915 Год назад

      @@RaddyDev ok thank you 👍

  • @ramendrasoni3368
    @ramendrasoni3368 2 года назад

    I am not seeing Update and Delete Button...

    • @RaddyDev
      @RaddyDev  2 года назад

      Yeah, that's cool. Customise it the way you like and suits your needs 🙂

  • @checkerface5710
    @checkerface5710 2 года назад

    i am stuck with this video I dont know now how can I add login and register. using all the files here.

    • @checkerface5710
      @checkerface5710 2 года назад

      also i dont know why I cant add recipe on Spanish I dont know why.

    • @RaddyDev
      @RaddyDev  2 года назад

      That's strange. What happens when you try Spanish?

    • @user-jq8yi3wj8n
      @user-jq8yi3wj8n 2 года назад +1

      @@checkerface5710 did you add 'Spanish' as an option in the enum array?

  • @Blenberg
    @Blenberg 2 года назад

    Search form doesn't work.I did it like in your tutorial.Could you help me

    • @mrmasonclashroyale9447
      @mrmasonclashroyale9447 2 года назад

      error: {"message":"text index required for $text query"}

    • @RaddyDev
      @RaddyDev  2 года назад

      @@mrmasonclashroyale9447 Your problem might be the Schema Index. In models - Recipe.js check if you have the following: recipeSchema.index({ name: 'text', description: 'text' });
      I hope this works for you

    • @mrmasonclashroyale9447
      @mrmasonclashroyale9447 2 года назад

      @@RaddyDev doesn't work

    • @poorvivishwakarma888
      @poorvivishwakarma888 2 года назад

      @@mrmasonclashroyale9447 hey did you find the answer of this ?

  • @saurabhprasad
    @saurabhprasad 2 года назад

    connection error: MongoAPIError: URI must include hostname, domain name, and tld..//pls help me

    • @RaddyDev
      @RaddyDev  2 года назад +1

      Did you set up your database and create the .env file with the credentials?
      .env
      MONGODB_URI = mongodb+srv://:@cluster0.1234.mongodb.net/Recipes?retryWrites=true&w=majority

    • @saurabhprasad
      @saurabhprasad 2 года назад +1

      @@RaddyDev yes database and the .env file will be set up but still not working..//so pls help me

    • @RaddyDev
      @RaddyDev  2 года назад +1

      @@saurabhprasad That's strange because the error suggest that you haven't got them. Make sure your ENV is working. Maybe console log some dummy data out of it

    • @tejaraju4793
      @tejaraju4793 5 месяцев назад

      Brother resolved this error I am also facing same error

  • @danieloluwapomile9068
    @danieloluwapomile9068 Год назад

    I am having an issue which is Category. insertMany is not a function

    • @RaddyDev
      @RaddyDev  Год назад

      If you are inserting multiple records you need to wrap them in brackets " [ ] ". insertMany ([ { name:"raddy"},{name:"daniel" }])

    • @danieloluwapomile9068
      @danieloluwapomile9068 Год назад +1

      i was able to to solve it now having Category. find is not a function. After inserting the Data into the database it.

    • @danieloluwapomile9068
      @danieloluwapomile9068 Год назад

      So i was able to rectify the problem, so if have dat error message all u need to do is got to ur Category file .
      //At the beginning
      const Schema = new mongose. Schema
      //And at the end of the Code
      const Category = mongoose. model("Category",categorySchema )
      module. exports = Category

  • @TimeLapse200OK
    @TimeLapse200OK Год назад

    Hi Raddy, I am getting this error - istening to port 3000
    error connecting to db MongoServerSelectionError: connection to closed.. Please do help out..Plsss

    • @TimeLapse200OK
      @TimeLapse200OK Год назад

      Do we need mongosh for this?

    • @TimeLapse200OK
      @TimeLapse200OK Год назад

      or this --> $ brew install mongodb-atlas-cli
      $ atlas setup ??

    • @RaddyDev
      @RaddyDev  Год назад

      Your comment was put in spam because of the IP you posted 😀 I think that you just need to add your IP in MongoDB

    • @TimeLapse200OK
      @TimeLapse200OK Год назад +1

      @@RaddyDev Just edited it 😅 Didn't realise I left it in the comment. Thanks Raddy!

  • @user-rh6fz1me6t
    @user-rh6fz1me6t Год назад

    Having a error, connection result err nan

    • @RaddyDev
      @RaddyDev  Год назад

      That's a strange one. Is there any way you can share your code? Maybe you are trying to convert err to a number with a plus sign in from of it

  • @evanilsonp.8183
    @evanilsonp.8183 6 месяцев назад

    Hey Raddy. This video was uploaded on 30 set 2021 and now in 2024 this project is working fine?

    • @RaddyDev
      @RaddyDev  6 месяцев назад

      Some of the packages have been updated and there are a few small braking changes. Nothing that you can't fix easily. I do try to keep the Github Repo up to date as much as I can. Everything is commented so you'll be able to see the small changes

    • @evanilsonp.9900
      @evanilsonp.9900 6 месяцев назад

      Just finished it and it was worth any minute. Thanks a lot ma broda@@RaddyDev

    • @tejaraju4793
      @tejaraju4793 5 месяцев назад

      Have you completed the project completely, i have been encountering errors here and there, would you mind helping me.

    • @evanilsonp.9900
      @evanilsonp.9900 5 месяцев назад

      @@tejaraju4793 Yes. It worked just fine here. No problems at all. What's up?

    • @21-abhikhillare8
      @21-abhikhillare8 4 месяца назад

      bro can you help me actually my mongodb is not getting connected the following error is coming please solve this
      connection error: MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.

  • @ittime4472
    @ittime4472 2 года назад

    can u give me recipe table data?i can't found

    • @RaddyDev
      @RaddyDev  2 года назад +1

      The structure might be on the Github repo. I'll have a look for the data, maybe I can zip it and upload it. I didn't want to have it online as obviously it was taken from jamie oliver's website. You can just use lorem ipsum :)

  • @dejaldbisen999
    @dejaldbisen999 Год назад

    hello, please anyone help me
    i am facing some problem
    Listening to port 3000
    connected
    err NaN
    like this. and I am refreshing then no data show in my desktop
    How I solve this problem.
    please reply.

    • @RaddyDev
      @RaddyDev  Год назад

      How far where you in the tutorial? Where do you think that the error comes from?

    • @dejaldbisen999
      @dejaldbisen999 Год назад

      @@RaddyDev await Category.insertMany([
      {
      "name":"Indian Thali",
      "image":"latest-3.jpg"
      },
      {
      "name":"Indian Samosa",
      "image":"3.png"
      },
      {
      "name":"Indian Biryani",
      "image":"2.jpg"
      },
      {
      "name":"Indian Samosa",
      "image":"1.png"
      },
      {
      "name":"Panir masala",
      "image":"4.png"
      },
      {
      "name":"Egg biryani",
      "image":"5.png"
      },
      {
      "name":"Panir-masala",
      "image":"8.png"
      }


      ]);


      }catch(error){
      console.log('err', error.message)
      }
      }
      insertDymyCategoryData();
      after inserting the data this problem throw? before inserting data this will work properly.
      and as well as this will not show the data in mongodb atlas. after refreshing this how to solve this error:
      Dejal D Bisen
      1 day ago
      hello, please anyone help me
      i am facing some problem
      Listening to port 3000
      connected
      err NaN

    • @RaddyDev
      @RaddyDev  Год назад

      Try removing the await and just run the function. Alternatively you can copy the data and insert it into Mongodb manually