In this project we will be creating a way for people to subscribe, update, retrieve and delete data on Youtube accounts. We’ll do this by coding a ...
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
Very interesting reading, this is really helping me out understand how routing works in expressJS.
thank you so much
Nice and Good Explaination..!
Can you please tell me what next? i would like to upload this Api to website for-example: example.com/api/posts instead of localhost:3000/posts
how can i do that?
Thanks.
get some knowledge about deployments.
Wow just great
I'd like to have a mantor like you !
Congrats on your first long-form article :)
thank you! Took me much long than anticipated haha
It's alright I always take a much longer time to write technical articles.
I have a Youtube Channel, in which I discuss tutorials, and react.js projects SEO, SSR.
Please check it out and maybe we can collaborate on something.
Video : youtube.com/watch?v=66owdRkc8pI
Channel : youtube.com/c/CodersLifeSimplified
This is a very important article since it shows the process from beginning to end so even if you had issues with some topics in the middle it ironed them out. Good job mate! I really appreciate it
How can I solve a Corss origin?, I'm calling localhost:3000/subscribers/ endpoint through react application which is running on localhost:3001
Hi, Vicente ! You can solve cross origin setting a header in your server definition.
But if you want you can delegate that to a lib called "cors" that you can install: github.com/expressjs/cors#installa...
And that you can use simply by calling it as a Middleware.
It is important to remember that allowing cors without specifying a known domain could be dangerous since anyone would be able to reach your api, be careful and if you have any questions don't hesitate to ask :)
saludos, paisano !
Hey thanks man for some reason I was missing put my domain there, but now it's work fine.
Gracias por el support carnal =).
thanks brother for showing this.
I've been reading on routing the whole evening, this article just shed a lot of light, thank you.
So happy to hear it helped! :)
Thank for this tuto ! It will really useful for me :)
And happy new year
Awesome, great explained. Thanks a lot!
Thank you very much.This is the easy-to-follow blogs for beginner like me.I really enjoy it.Keep doing ! :)
Thanks for article, I was test your code it really work great!
Awesome! Glad it was useful :)
I think
app.listen(3004, () => console.log('server started'))
should beapp.listen(3000, () => console.log('server started'))
thank you so much Bennett, your explanations are working !!
Great Article,
clean code, straight to point, and great explanation. as a beginner helped me a lot.
thanks
thank you!
Great tutorial! May I know how or where can I deploy this API?
I love this article, great job!
Found a small error in the
catch
for the update subscriber, it's missing the(err)
parameter part.Thanks!
Was a great guide for a beginner
Liked it lot <3
user == null
doesn't work for me, instead I have to useuser.length == 0
. May be because I am noob.I think you can combine Express JS and dbdesigner.id as your database designer. This can make your project readable and clear documentation.
dude this has so far been the most useful tutorial i've ever followed
Another useful tool - github.com/dotenv-linter/dotenv-li....
It’s a lightning-fast linter for .env files. Written in Rust.
Not sure if you will get to see this considering how long it has been, but I having a problem with the middleware, for some reason it always returns "User not found", not sure why
Hi, thank you for nice article. And it work great!
Iam new in nodejs and mongodb. How to make data have child?
Like:
name: tommy
subscribedChannel: has multiple here
Thank you
Thank you for the great article!
Shame it's not original.
For the original tutorial see -> https://www.youtube.com/watch?v=fgTGADljAeg&ab_channel=WebDevSimplified
This is noted in the intro to the tutorial along with the link the this video.