Тёмный

8.7: "Build Your Own API" Conclusion with HTTP POST - Programming with Text 

The Coding Train
Подписаться 1,7 млн
Просмотров 42 тыс.
50% 1

This is it! The conclusion to the "Build Your Own API" with node.js tutorial from my "Programming from A to Z" ITP class.
In this last part, I add AFINN-111 Sentiment Analysis to the API and setup an HTTP POST Method for users to submit data. I also add the node packages "cors" for Cross-Origin Resource Sharing and "body-parser" to help with parsing the body of a POST request.
Course url: shiffman.net/a2...
Support this channel on Patreon: / codingtrain
Send me your questions and coding challenges!: github.com/Cod...
Contact: / shiffman
GitHub Repo with all the info for Programming from A to Z: github.com/shi...
Links discussed in this session:
Node.js: nodejs.org/
Node.js "fs" Documentation: nodejs.org/api...
Express.js: expressjs.com/
body-parser on npm: www.npmjs.com/...
cors on npm: www.npmjs.com/...
p5.js: p5js.org/
Source Code for the all Video Lessons: github.com/Cod...
For More Programming from A to Z videos: www.youtube.co...
For More Coding Challenges: • Coding Challenges
Help us caption & translate this video!
amara.org/v/0vz1/
📄 Code of Conduct: github.com/Cod...

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 60   
@ZombieBrainz
@ZombieBrainz 7 лет назад
Great work Daniel -- tip for you this time: COMMAND+K will clear the terminal vs typing 'clear' each time.
@mjcarollson2
@mjcarollson2 7 лет назад
These tutorials are the best I've come across in the year since I started to delve into web development. I was getting a bit tired/frustrated with the journey but these tutorials really helped to get me back on track (and reminded me that learning can be fun). A thousand thanks Daniel!!!!
@TheCodingTrain
@TheCodingTrain 7 лет назад
Thank you!
@shivatomar4319
@shivatomar4319 3 года назад
Hey how are you doing now ?!
@rehananwar8558
@rehananwar8558 6 лет назад
You described the express model in very detailed and properly, your tutorial is very good.
@CoolDownMati
@CoolDownMati 3 года назад
Thank you very very much, now I understand a lot more. I was stuck in this get/post requests because I want to migrate from PHP to Node, and was pretty much difficult for me
@ShaXCwalk
@ShaXCwalk 7 лет назад
God yes. This is perfect. Was just learning API basic
@elemental_mist
@elemental_mist 7 лет назад
This is a little advanced for my level, however, I enjoy watching this 20/30 minutes videos. I've learned a lot of stuff, thank you! "RU-vid zapping" got me to your channel, and I don't think I'll be leaving soon. I realy apreciate the effort you put into the videos, please keep doing it!
@pcx4671
@pcx4671 3 года назад
Fabulous👍
@EnzoDCV
@EnzoDCV 7 лет назад
Thanks for everything!!!
@livewell453
@livewell453 2 года назад
Yes!!
@marcofernandes7607
@marcofernandes7607 7 лет назад
amazing dude!!!!!
@c0mpuipf
@c0mpuipf 7 лет назад
pff I watched this video series while writing the same code in parallel and it was a great experience. (I skipped the bit where you actually analyzed the text because there were so many variables that kept piling up and got overwritten that it was too painful). I'd like to ask if it's ok with you to add a branch replacing the for loops with forEach and other functional stuff (to get some functional practice); I will need to check out your github for poets series too though to know github a bit better ALso, anything you do with node is amazing, best examples ever (speaking of which - can the bot created with the twitter bot application post the tweet - and also post data in a REST API? (something like data: tweet.txt) - and you have a history of your tweets which you can call forEach on and then analyze and see how your life is downspiraling on you (or not)? - this way you know to frame your tweets / social media more positively so you don't get depressed or smth?
@TheCodingTrain
@TheCodingTrain 7 лет назад
Yes all that is possible and yes branching and improving the code is welcome and encouraged!!
@RABWA333
@RABWA333 7 лет назад
More on javascript API please
@Fenix.x00
@Fenix.x00 7 лет назад
Do you have a video explaining how to setup p5.js with Atom or another text editor? I'm having trouble starting projects because I don't understand what I'm doing and it's also probably because I've never used a javascript based language.
@2003vito
@2003vito 7 лет назад
you just need to go to p5js website and download file and put iz into your project and then reference it in html
@hamidbluri3135
@hamidbluri3135 6 лет назад
That is great! But why you don't use snippest or emmet for codeing faster?
@rajivshah7751
@rajivshah7751 7 лет назад
Basically which programming language you used?? Java or Javascript??
@plbader3714
@plbader3714 4 года назад
who watching this in 2020 corona virus time
@zenglingyuan6439
@zenglingyuan6439 5 лет назад
SyntaxError: Unexpected token h in JSON at position 1..... This doesn't influence my outcome, but it keeps happening .... why...
@oscarstorm4694
@oscarstorm4694 6 лет назад
Which video covers the way to get around the CORS error you sometimes run into when using the loadJSON() function in p5?
@TheCodingTrain
@TheCodingTrain 6 лет назад
Try jsonp! Maybe this video? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-6mT3r8Qn1VY.html
@oscarstorm4694
@oscarstorm4694 6 лет назад
Thank you! :)
@arddison3894
@arddison3894 7 лет назад
Coding Challenge suggestion : Make Google Chrome's Hidden Dinosaur game! You know that game that you can play when there is no internet lol
@GolDRoger0
@GolDRoger0 7 лет назад
You are awsm
@someenglishgames
@someenglishgames 7 лет назад
hey, i Love your Channel but ive got a question. is p5.js good for most animaty type apps? I used createJS but that was a bit too hard to create certain things and animating them was hard because of the documentation. p5.js looks easier, is that the way to go if I want to make a small game as well?
@ondraenglish8131
@ondraenglish8131 7 лет назад
Could you make a tower defense game in Java next? It would be interesting to seee
@TomasNic
@TomasNic 7 лет назад
Daniel, i have a question. I could connect a simple html with processing? Think with an osc connection but I could not. If I could with p5js but send from processing to html not backwards
@nandarora8036
@nandarora8036 7 лет назад
how could I make an api key for this?
@jasonreviews
@jasonreviews 7 лет назад
finally
@sapphireswords5529
@sapphireswords5529 7 лет назад
JAVA SCRIPT IS EXPENSIVE!!! PROPS TO YOU SIR FOR THAT
@sapphireswords5529
@sapphireswords5529 7 лет назад
But to download the actual thing yeah lots of money, unless you have a different way of doing it
@2003vito
@2003vito 7 лет назад
+Sapphire Swords wait what?? to download what?
@sapphireswords5529
@sapphireswords5529 7 лет назад
JavaScript
@2003vito
@2003vito 7 лет назад
From where the fuck are you "downloading" it?
@yazoho6459
@yazoho6459 7 лет назад
what program do you use for your java challenegs?
@aaronkelley8886
@aaronkelley8886 7 лет назад
Hey all, I am having some trouble with the httpPost leaving an empty body still. I followed the tut exactly and tried looking everywhere for a fix, please help! Shiffy save me!
@MrHossie
@MrHossie 7 лет назад
I am having the same problem... not sure what I'm doing wrong.
@gl2860
@gl2860 7 лет назад
same issue. did you find a fix?
@MrHossie
@MrHossie 7 лет назад
Its not really a fix - i just used jQuery's post method instead :|
@gl2860
@gl2860 7 лет назад
thats genius man ty
@MegaSundry
@MegaSundry 6 лет назад
the problem is your p5 setup, you have to move the addons around and play with the linking in the index.html on the empty example
@eduardomoseisfuentes9912
@eduardomoseisfuentes9912 6 лет назад
Do someone know about a book to do all things in the video?
@jeremysenduk8351
@jeremysenduk8351 7 лет назад
hey , where is the complete snake game.? sorry for bad english lul....
@dafransmnk9731
@dafransmnk9731 4 года назад
im building my own api bc im weird and like everything to have been done by myself
@TheMegaBoss1212
@TheMegaBoss1212 7 лет назад
Hey, i need some guidance. Im looking to learn java in hope that eventually a can program a simple android app. Where should I start? Do you have any book suggestions or good websites? Thanks!
@TheCodingTrain
@TheCodingTrain 7 лет назад
+TheMegaBoss1212 you could try my Processing playlists where everything is written in Java.
@alfonshomac
@alfonshomac 7 лет назад
Nature of Code by the Shiff hisself!. It'll get you in a computational frame of mind which is really what remains after programming languages come and go. Easily translatable to games.
@socalledsound
@socalledsound 7 лет назад
Is the code from this tutorial available anywhere on github? Not seeing it in A2Z or rainbow master. Thank you!
@TheCodingTrain
@TheCodingTrain 7 лет назад
Can you file a github issue at Rainbow-Code and I'll take a look?
@socalledsound
@socalledsound 7 лет назад
thanks for the answer, but no issue with github -- just not immediately seeing 8.x code that relates to these videos? found something somewhat similar for many of the 8.x videos in week 4 but nothing on .post. Was, more, wondering if I'm looking in the wrong place perhaps? and thanks for the great videos as always, you have a great way of cutting through the chaff on so many topics, greatly appreciated!
@devenderbhatt421
@devenderbhatt421 7 лет назад
my program giving error select not defined
@MenInShoeboxez
@MenInShoeboxez 7 лет назад
What would you recommend for a text editor for html on pc?
@thySerge
@thySerge 7 лет назад
I would definitely go with Dreamweaver - hands down.
@ProfiPoint131
@ProfiPoint131 3 года назад
Apple again. WHY?
@eatdough6905
@eatdough6905 7 лет назад
Can YOU please help me. i am a programmer. i know only visual basic. but i really do understand alot of stuff about problem solving. bug fixing and alot of other stuff. i really really want to learn java effectivly from a book. but i cant seem to find a book i would be comftable with and would be able to learn from it. Please dont refer me to another video. thanks in advance
@eatdough6905
@eatdough6905 7 лет назад
i am not trying to spam.. please help
@sebastianmestre2145
@sebastianmestre2145 7 лет назад
try the Java official specs. it's all in there, it might be just what you need
Далее
How to build a REST API with Node js & Express
58:40
Просмотров 1,7 млн
КОГДА НАКРОШИЛ НА ПОЛ #shorts
00:19
Node.js is a serious thing now… (2023)
8:18
Просмотров 651 тыс.
8.2: HTTP Server with Express - Programming with Text
12:20
What Are APIs? - Simply Explained
6:49
Просмотров 887 тыс.
Coding Challenge #75: Wikipedia API
24:51
Просмотров 317 тыс.
Learn JSON in 10 Minutes
12:00
Просмотров 3,2 млн