Тэги:
#node #node.js #node.js_rest_api #rest_api #node_rest_api_no_framework #restful_apiКомментарии:
I realized I have never done this. In an actual project, you would most likely use Express or some other framework, but I wanted to do this for learning purposes so you can see a bit of what goes on under the hood. This API can be improved (eg. creating a better router), so feel free to work on it and make a PR :) Hope you enjoy!
ОтветитьWow bro the way you explain things is truly next level!!! All your tutorials and the way you take us step by step with every project that you build is honestly just a MASTERCLASS! Can't thank you enough for everything bro!
ОтветитьTHIS is what I was looking for, it's like learning JS before you learn React. Every other video has been "just use this service" without even explaining the abstraction of the original things those call to.
ОтветитьThanks Brad
ОтветитьThank you man, very helpfull this video. Really appriciate it I will follow your channel jejej again Thanks a lot
Ответитьbest video, i love it
Ответитьamazing!! Thankyouu
Ответитьthankyou so much for sharing
ОтветитьThanks Brad
Ответитьit don’t matter if you have an issue or not, if you plan on learning like this, don’t expect to be helped. these people put all this information in a video, don’t ever come back to read comments or anything. this shit sucks. if you are new to this shit, you’re going to see a lot of the same bullshit.
Ответитьmy shit was working before all of the new folders, and i followed everything he did. this is the number 1 reason this type of learning is complete ass. dude just doing this for views. you won’t get any reply.
ОтветитьAwesome video, very well explained. Thank you
ОтветитьThank you for your video.
Ответитьthank u sooooo much really worth and i made it with u step by step , it's fully functional at me
ОтветитьThis was a great project sir I enjoyed the video please can we get this video sithe a real life project just to see how this applies in a real life situation
I still dont understand where and how to apply this in a real life project
I would love you do a video like that and a big thks so far
thanks for creating a beautiful content. and I happy to let you know that I completed it.
ОтветитьPlease make a video of how you'd do this using a sql server database
ОтветитьI wonder how your api manages to work with uuid generated id that is checked by regex (in server.js) that seeks for numbers
/\/api\/products\/[0-9]+/ i had to rewrite mine like this /\/api\/products\/(\d+|[a-f0-9-]+)/ in order to get it to work
Change match expression to req.url.match(/\/api\/products\/([\d]|-?[\d[a-f])+/) everything else will just work fine...
ОтветитьCan I use such API to fetch data into a mobile app?
Thanks, Brad ✌️
I think the RegEx for "/api/products/:id" urls considering uuids would be
/\/api\/products\/([a-zA-Z0-9\-]+)/
I followed through the entire course except for one thing. I used a regular array instead of a json file since I was using an old file from a previous tutorial. Because of this every time the server restarts all the changes made in the server got overridden and I had to start over again. Nice course, this really makes me appreciate Express.js.
ОтветитьOne of the best tutorial I have seen, thank you for this. Plus, you have a way to speak which is very comprehensible for non-english people like me, I'm quite amazed to understand very well each word !
ОтветитьThank you very much, really much appreciated.
Ответитьcan you please explain why we did chunk.toString() in the getPostData function ?
ОтветитьWhen using " writeDataToFile("./data/products.json", products) " in productModel, why do we only put 1 dot before /data, and not 2 dots ? don't we need 2 dots to go outside the models folder?
Ответитьgreat
ОтветитьIncredible quality video! Good voice record and nice material!
Thank you very much!
thx bro
ОтветитьThank u so much for making this video.
Ответитьthank you!!
ОтветитьThanks
ОтветитьI want to thank you so much!
ОтветитьG-O-L-D
Ответитьok wow thats easier than i really thought
ОтветитьGreatly AWESOME!!
ОтветитьGreat video, very helpfull, understanding. Thank you!!!
ОтветитьAmazing video!!! Thank's a lot...
ОтветитьCRUD me
Ответитьthank you for the video
ОтветитьThere are many videos and blogs with titles 'REST API using NODE' and each one them are using Express. I wanted to learn how can I do it using Node only and I got this...Great work💕❤
ОтветитьGetting a lot of bugs even though I used the same code...please help
ОтветитьI enjoyed it ,thanks . Keep up great work. Have a Happy New year .
ОтветитьCompleted excellent tutorial on CRUD API in Vanilla JS. Thanks, again, Brad
{2021-12-16}
Thank you, great video. It took me forever to realize that my delete response body wasn't showing up because I used a 204 response code. I like the idea of using a 200 and being able to confirm the deletion.
ОтветитьHow can I connect Angular with Node (of couse as API ) without Express ?
Ответить