Тёмный

Node.js tutorial for beginners 2014 - an introduction to Node.js with Express.js 

LearnCode.academy
Подписаться 773 тыс.
Просмотров 345 тыс.
50% 1

Node.js tutorial for beginners - 2014 Update
This video is an introduction to Node js using the latest updates to the Express.js framework. Nodejs is an amazing web framework that makes web development and engineering tons of fun.
Here's some other videos:
Node, MongoDB & Mongoose:
• Node.js MongoDB Tutori...
Learn Angular.js in 30 Min! - Angular Tutorial for Beginners using UI-Router
• Angularjs Tutorial for...
Bootstrap Tutorial For Beginners - Responsive Design with Bootstrap 3
• Bootstrap Tutorial For...
~-~~-~~~-~~-~
Also watch: "Responsive Design Tutorial - Tips for making web sites look great on any device"
• Responsive Design Tuto...
~-~~-~~~-~~-~

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

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 304   
@noided697
@noided697 9 лет назад
"I'm going to use --hogan, because i'm going to use hogan templating which is basically mustache..they support less and stylus, but not sass" "for beginners"
@learncodeacademy
@learncodeacademy 8 лет назад
+Joe Wearing If you're looking for more of an intro to Node.js itself, not node.js for web applications, then check out this video which is much lower level: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-pU9Q6oiQNd0.html
@lahirupc
@lahirupc 6 лет назад
+Noi Ded Yeah, but I learned a lot from this video.
@TeutonicGamin
@TeutonicGamin 6 лет назад
I feel so old and in the way
@jasonhanna3265
@jasonhanna3265 5 лет назад
@@learncodeacademy I know this is old, but this video is more of a Node.js/Express.js crash course for experienced full-stack developers. Definitely not for beginners.
@TheGreatCoNBoB
@TheGreatCoNBoB 8 лет назад
What the fuck is mustache and hogan
@JosephFunChannel
@JosephFunChannel 7 лет назад
Man, this is some next level shit. As much as I wanted to learn Node now after watching this video I feel intimidated and discouraged. There are so many things you've said that didn't make any sense to me.
@PaDamTuts
@PaDamTuts 7 лет назад
The first sentence describes it so correctly, just as my life. LMAO!
@007LvB
@007LvB 8 лет назад
it's really good that you make tutorials like this.. you might want to rename it to "Node.js tutorial for experts" since you don't explain anything but just rush through a lot of names without telling what they do and why you want to use them.
@RandomNullpointer
@RandomNullpointer 6 лет назад
I've never seen Node.js code before today, and I have little experience with js, yet I found this video quite clear and informative.
@LunchboxdadioMusic
@LunchboxdadioMusic 9 лет назад
At 5:50ish you talk about stopping and restarting the server but you don't say how you do it. I wore out that section of the video and I can't tell what you are doing.
@learncodeacademy
@learncodeacademy 9 лет назад
David Schenk Ah, sorry, ctrl+c kills a terminal process.
@BrandonPalm
@BrandonPalm 9 лет назад
***** 500 bits thanks for the quick tutorial!
@learncodeacademy
@learncodeacademy 9 лет назад
Thanks Brandon!
@jesasuinakan
@jesasuinakan 10 лет назад
Min 5:45 - DEBUG=app ./bin/www Makes my terminal no longer able to receive commands. Even when i've saved the files in ./bin/www to use "app" and the 9000 port, it still won't work...
@learncodeacademy
@learncodeacademy 10 лет назад
You won't be able to receive commands, because the node server is running indefinitely. To stop your server, hit ctrl+c to get a prompt back. What I'll usually do is have 2 terminal windows open, one for my node server and one for github commands, etc.
@c0al
@c0al 8 лет назад
mfw i find out it's "node mon" and not "no demon"
@TerenceKearns
@TerenceKearns 9 лет назад
Would be cool for you to do a 2015 version using cloud9 :P
@SilverTroy77
@SilverTroy77 10 лет назад
Error WinXP: DEBUG=my-application ./bin/www File not found. npm start - starts server on localhost:3000
@w_ulf
@w_ulf 10 лет назад
Had the same problem. Searched Stackoverflow FTW XD stackoverflow.com/questions/22215592/default-node-js-express-js-does-not-run
@GlukAlex
@GlukAlex 10 лет назад
Don Ricardo JR Thanks for the link. Additionally I change 'start:' in package.json from 'node' to 'nodemon'
@ahmadhasanKhan
@ahmadhasanKhan 9 лет назад
express deprecated res.send(body, status): Use res.status(status).send(body) instead
@PraveenKumar-ob5qe
@PraveenKumar-ob5qe 8 лет назад
Any One can help me ???? I don't know what is API , REST API, JSON, NODE JS ????? Theses are all related together ???? How they are working???????
@jeremiahfernandez14
@jeremiahfernandez14 10 лет назад
hey, i cant seem to debug and get that "express server listening on port 3000". im doing pretty much the same thing what your doing but that when it comes to the debug part it keeps on saying it is not recognized and so i cant move on to the port 3000 part...im using a windows 8.1 / you mentioned to open the npm start on windows? how do you that.. lol (i'm really sorry if this comes lame to you guys but im a total newbie in all this codes and stuff) hoping for your response. THANK YOU . :)
@learncodeacademy
@learncodeacademy 10 лет назад
It's the difference between how you set environment variables on windows and osx. Try running 2 commands set DEBUG=app node ./bin/www
@djCESSION
@djCESSION 9 лет назад
LearnCode.academy getting Error: Cannot find module 'debug'
@djCESSION
@djCESSION 9 лет назад
djCESSION Please excuse the noobness I wasn't running ps in administrator
@staynjohnson4221
@staynjohnson4221 10 месяцев назад
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
@insaneitskills2467
@insaneitskills2467 10 лет назад
Check this interactive course:Learn Node.js and MongoDB from scratch by examples www.udemy.com/nodejs-tutorial-from-scratch-by-examples/?couponCode=NewOffer 1.Lifetime access to 24 lectures 2.Over 120 mins of high quality content! 2.Join to a community of over 2687 students learning together. 4.Course information and regular updates 5.Learn node.js and mongoDB from scratch by examples. 6.Course information and regular updates. 7.Discussion forum, which we encourage you to make use of -- both to pose questions about the material to the course instructor and to exchange ideas with your classmates. 8.High quality course support.
@kevinengwu8191
@kevinengwu8191 9 лет назад
After 10:11, i tried sending OK and get an ''Object # has no method 'send' message on the html GET / 500 on the console. Don't know what is wrong, please help. UPDATE: Never mind, I was inverting the order of the request and response.
@JustThink2000
@JustThink2000 10 лет назад
I think im in love... #nodejs #express
@troooooper100
@troooooper100 10 лет назад
can you answer this question: stackoverflow.com/questions/27085069/templating-in-nodejs-confused-about-several-things
@uhdang
@uhdang 7 лет назад
Hello, thanks for the great video! I've tried uploading json object to the website and ran it, but the 'type' doesn't read as 'json' but just 'document.' And I can't figure out why... I'm trying to further use this server to practice .ajax() 'GET' function, but when I try it, it doesn't seem to work. The only reason I can think of is those 'type' issue where it doesn't recognize uploaded data as json.. Could you help me, please?
@Swordfisher1969
@Swordfisher1969 8 лет назад
HI Will great tutorial, however I'm having some errors. I just installed nodemon and typed the console.log line to see it running, but when I tried to save (using VS Code) I get, Failed to save 'app.js': A system error occured (EACCES: permission denied. I also notice in the www file i am getting errors on require & process, e.g. can't find name 'require' any. Can you help? EDIT: after some research renaming www to www.js removed the errors as I think it's overwriting the preferences and making www a .ts file, however I'm still getting permission denied when trying to save?
@Sefree6
@Sefree6 7 лет назад
I just noticed the amount of comments mentioning how this seems difficult and hard to understand. If you don't understand the concept of templating (hogan, jade, etc), then WHY are you trying to learn Node.js? Baby steps, people, baby steps. Again, great video.
@TheEggm
@TheEggm 9 лет назад
Hey, I followed this guide and had no issues at all until 4:03 When I ran the ./bin/www command it says exp2015:server listening on port 3000 +0ms but when I went to the url in my browser it just says Unable to connect. Can anyone help me?
@Carlos-cz7rb
@Carlos-cz7rb 9 лет назад
Hey there, I wonder what software (or internal setup) you are using on your Mac to remember the sizes and positions of opening windows. It's quite fancy that Mac opens each window at the position you desire when programming with multiple windows. I found some recommended software like Stay, Breeze, Slate, Forget-me-not, SizeUp, Optimal Layout but have no idea which one is good.
@spaarks84
@spaarks84 10 лет назад
First of all, great post. I would recommend redefining where NPM stores global packages and to never globally install a package from NPM as sudo. The global packages should really be in your .local directory. If you build node from source, it is relatively simple to do. This is a good link if you want to read more: tnovelli.net/blog/blog.2011-08-27.node-npm-user-install.html Getting Yeoman to work when your not part of the super user group can be very challenging without first doing this.
@shaungo1631
@shaungo1631 7 лет назад
I already have a simple website using html, css (index.html etc). Currently, I just upload into "public" folder to my host. How do I put this website into Node.js/Express so that it will on the web?
@mitchelepperly7227
@mitchelepperly7227 9 лет назад
If using yo angular-fullstack, is hogan a default instead of jade for express because it's already in angular? When it asks how I would like to write markup it asks for either HTML or jade (I'm assuming this is geared toward express).
@aseolin
@aseolin 8 лет назад
11:11 My JSON object is showed as a "document", not as an application/json
@vhajmik
@vhajmik 9 лет назад
Cool. Thanks. This tool will be helpful for beginners (not only): www.npmjs.com/package/react-ui-builder
@sultankenjeyev5649
@sultankenjeyev5649 8 лет назад
Hi, i was wondering how you made your terminal look like that?
@guppy9896
@guppy9896 7 лет назад
Are there some videos I have to watch before the Node.js tutorial? I have finished the Web Development Fundamental playlist and then when I proceed with the Node.Js playlist I just feel super confused.
@JaybharatVishwakarma
@JaybharatVishwakarma 8 лет назад
Bloke, you are too good in the explanation. Superb way !!! Can you please explain us chat application in Node.js using API?
@QingxiangJia
@QingxiangJia 8 лет назад
Having done some Spring MVC at work, listening to your tutorial feels like a fresh gust.
@jkokito827
@jkokito827 10 лет назад
***** When i made my own IP Address i try doing some extra work or adding some HTML codes but the page wont refresh or nothing. I dont know if its my computer or what. I Got a Windows XP Computer.
@RobBaartwijk
@RobBaartwijk 3 года назад
New to nodeJs and sort of to Js itself. Came from the php-side. Very useful overview. And it remind me somewhat of the setup of a Laravel framework, what with the neat app.js...
@Andrew-K
@Andrew-K 9 лет назад
What is that monitor window in the bottom half of your chrome browser? Part of Node.js' settings, part of chrome's activity monitor, or your mac's activity monitor?
@troooooper100
@troooooper100 9 лет назад
Hey LearnCode.academy Can you do tutorial on snoocore (reddit wrapper for nodejs) i can't get pass oauth part, and nor i can understand the documentation. After jquery this would be 2nd docs i'm attempting to understand. So i am pretty lost. Oauth is eating me.
@realph44
@realph44 9 лет назад
I notice you have a few shortcut commands in your terminal. Are you using dot files? If so, would love a video on dot files. Something I've always wanted to know more about. Love the channel, by the way!
@Fabs3
@Fabs3 9 лет назад
Just a quick note that DEBUG=app:* ./bin/www did not work. So I just used node ./bin/www instead.
@alfcnz
@alfcnz 9 лет назад
One more question, when you `console.log(res.query)` the output shows nicely in your terminal as a JSON. In my terminal I simply get the string `GET /?test=3&else=4 200 3.239 ms - 205`. Are you using some specific settings? It's a bit hard to follow a tutorial with customised output and Chrome extensions.
@learncodeacademy
@learncodeacademy 9 лет назад
+Alfredo Canziani (冷在) Nothing special/customized for me going on... What I believe you're seeing is express's default logger. Res.query should always be an object if you console.log it.
@alfcnz
@alfcnz 9 лет назад
Then why you have a JSON object and I have a string instead?
@learncodeacademy
@learncodeacademy 9 лет назад
I have an extension for chrome - json viewer - that makes json responses pretty.
@alfcnz
@alfcnz 9 лет назад
Your `bin/www` has just 10 lines. Mine has 91. OK, one year has past since you made the video, but how come so many lines have added to the file? For example, there are `Module dependencies`, `Get port from environment...`, `Create HTTP server`, and many more sections. Any idea?
@alfcnz
@alfcnz 9 лет назад
+LearnCode.academy any idea about this, instead?
@learncodeacademy
@learncodeacademy 9 лет назад
+Alfredo Canziani (冷在) Yeah, they just added some extra helpers for better error handling and normalizing of PORT when you pass it in. They keep improving the generator over time.
@alfcnz
@alfcnz 9 лет назад
Oh, ok. It looks confusing, though... In your tutorial it was so 'clear'... Anyhow, if it's an improvement, it all good. Tnx for answering!
@EricDiazMD
@EricDiazMD 9 лет назад
How do you get your project folders to come up in your sublime text app? Is the process for setting that up similar in Atom? Can anyone answer this?
@dragon32321
@dragon32321 6 лет назад
Linux users will have to create a symlink node ->nodejs before you can use command express.
@EnviroCommons
@EnviroCommons 9 лет назад
My nodejs screen comes up with a > sort of cursor. When I type node -v or npm -v it doesn't recognize it. It says ReferenceError node is not defined. What am I missing?
@surc_
@surc_ 8 лет назад
+Hélène Julien sorry if this a bit late, but I think you started node.js with the fancy icon. I used GitBash (git-for-windows.github.io/ (windows)), and everything went fine. I guess you can use command prompt too, but Ctrl + C doesn't work for me
@robertwilkinson9946
@robertwilkinson9946 10 лет назад
With the release of Express 4.0.0 it looks like you need to do sudo npm install -g express-generator
@DrWho2008t101
@DrWho2008t101 3 года назад
thanks for the video.
@4mylife4mylove
@4mylife4mylove 10 лет назад
actually there's no bin folder under created app folder.....:S
@kerryruddock5879
@kerryruddock5879 7 лет назад
woah.. eyes glossed over with head spinning. an introduction? really?
@emerson0001
@emerson0001 7 лет назад
How did you customize your terminal to have this appearence though?
@connyb9168
@connyb9168 10 лет назад
Great tutorial. Why don't you use sass instead off less? Less is rarely updated. I can't get sass to work
@mattiazp
@mattiazp 9 лет назад
Awesome tutorial, thanks for sharing!
@iVVES
@iVVES 10 лет назад
Hey great tutorial! What sublime autocomplete are you using for node?
@syntrax-og
@syntrax-og 9 лет назад
Where's the tutorial for Windows?
@MarkCharles
@MarkCharles 10 лет назад
Great video. I've not used Node.js before but definitely going to try it out.
@ChuQuang2605
@ChuQuang2605 8 лет назад
how do you configure the cmd so that you can type shortcut to launch specific app ?
@WandileChamane
@WandileChamane 10 лет назад
I like how you fly through but clear to understand and explain simple things, I like learning on the go, I sometimes put tutorial videos on fast-forward, Thanks
@learncodeacademy
@learncodeacademy 10 лет назад
Oh great to hear! I try to go as-fast-as-easily-learnable...sometimes a little too fast I fear haha.
@MrTabennett
@MrTabennett 10 лет назад
LearnCode.academy I would have to disagree. I enjoy your tutorials. So, please don't get take offence when I say this, but, these are definitely not at beginner or introduction pace. While I feel you are very knowledgeable about what you are talking about, my version of beginner is definitely different than what I feel your version is. You gloss over too many things and assume that a significant amount of understanding. As an example. The part about launching the app in Express. It is different in Windows, and you don't mention that fact at all. I tried for two hours to get it to work just to get the server up and running without any success. Then I saw another persons post below with your reply to it. lol. I am definitely a beginner here, but not to JS, or the command line and I still have a hard time keeping up at a "Beginner" level. :)
@learncodeacademy
@learncodeacademy 10 лет назад
Ok, so great thoughts, which I REALLY appreciate. Yes, I can totally see how this video covers WAY too much ground for a beginner. It really should be broken up into multiple parts - each part explained. This video is more of a "1,000 foot view" overview of what stack you use to build a node app.
@WandileChamane
@WandileChamane 10 лет назад
Just to add on to the installation of express on windows, for anyone who has this issue, You need to run the cmd as an administrator, navigate to your project path, then do a "npm link express", on windows express doesnt get linked to your current project folder automatically, this applies to Windows 8 and 7
@learncodeacademy
@learncodeacademy 9 лет назад
Thanks for that! I haven't had a windows machine for a few years, so I forgot exactly what all you had to do.
@alfcnz
@alfcnz 9 лет назад
Another thing that doesn't look like the way you've shown is the rendering of the JSON, when you return it in with `res.send()`. I've tested the syntax, and it looks correct, but it displays like text and under `type` I get `Document` and not `application/JSON`.
@alfcnz
@alfcnz 9 лет назад
+Alfredo Canziani (冷在) OK, I figured it out. You have *JSONView* Chrome extension installed... Nice to know why our browsers were behaving differently...
@ajahajah
@ajahajah 9 лет назад
In other tutorials I've watched, they typed node to run. You used DEBUG=. What is the difference?
@learncodeacademy
@learncodeacademy 9 лет назад
So 2 things are going on: 1, the express generator has set the bin/www javascript file to be executable, so you can either run it the old way: node bin/www - or just execute it directly - ./bin/www No big difference other than that. The other is that DEBUG=app is setting an environment variable before you run the program. (process.env.DEBUG will equal 'app' in the node app, which is used by the debug module in the www file) This is common, most often used for passing NODE_ENV=staging or NODE_ENV=production before running your app. The app will then check NODE_ENV and connect to a separate database in staging or production.
@kebman
@kebman 9 лет назад
LearnCode.academy DEBUG didn't work on my Win7 system, though the regular node worked, however that was rather moot after I installed nodemon. One thing I find great with Node is how you can run the project from anywhere, so for testing I usually run it directly from my Dropbox. Great if you own more than one machine but still would like to tinker on your project.
@DavidMcGrawdrummer
@DavidMcGrawdrummer 10 лет назад
Great tutorial! Question: I hear people comparing Node.js/Espress.js as a similar to RoR, is there a massive difference? or is it a matter of preference?
@DavidMcGrawdrummer
@DavidMcGrawdrummer 10 лет назад
That was a great answer Will, I'm new to development and I will keep watching/recommending you channel and tutorials.
@craigdempsey8861
@craigdempsey8861 7 лет назад
@youtube why can't I :thumbs-down: ads? #UX
@MarcelRobitaille
@MarcelRobitaille 9 лет назад
Wow! I knew node was cool, I just didn't know it was this cool!
@md.shafayatulhaque6273
@md.shafayatulhaque6273 5 лет назад
Thanks, lots of information. Great video.
@MelroyvandenBerg
@MelroyvandenBerg 8 лет назад
I thiink sass can be used now a days (node-sass-middleware) by using -c sass.
@ryanburch3092
@ryanburch3092 7 лет назад
Thanks
@betasoftsystems9536
@betasoftsystems9536 7 лет назад
Kindly share your link of node with mongo DB
@JorneDeSmedt
@JorneDeSmedt 8 лет назад
Wait... If it keeps everything loaded in memory, won't you run out of RAM if you have to load a few billion videos and images?
@lars_vs
@lars_vs 7 лет назад
good question, does anyone know?
@igora50
@igora50 7 лет назад
Yes, this is why you pay money to host your application. If you make it up to the point where you have hundreds/thousands of images or videos, you'll already be hosting on something like heroku.com
@vinaymhetre
@vinaymhetre 8 лет назад
Hi, Thank you for amazing videos. I have also been following your React videos and they are awesome. I have a strange requirement with node. I need to read data from a third party REST api and store it in my postgres database. But I want the node app to keep watching the api endpoint for new/updated data (there is no trigger point like reloading a page or clicking a button) based on a query date parameter (/api/users?since_updated = 2016-01-26%2009:01:44). For example when I pull the data today, my app should save today's date in database and the next time it should ask for data from the saved date. Is node suitable for this? Or should I consider other options? Everything is doable reading from API, storing in databse but I don't know how to keep the node listening continuously (or every hour) to the api endpoint with the latest since_updated parameter. Do you have any resource that can help me with this?
@learncodeacademy
@learncodeacademy 8 лет назад
+Vinay Mhetre It's definitely no problem to have a node.js route that makes a service call to the REST api to read the data...unless the goal to limit how often you have to hit that api. If that's the case, I would do this one of 2 ways: • Have your Node service cache the calls you make to the REST api so you're only calling each endpoint every minutes • Have a 2nd service "scrape" the api periodically to keep your postgres DB in sync.
@hugoribeiro1317
@hugoribeiro1317 10 лет назад
Sorry about the dumb questions: i'm new to node and javascrpit as well, but im trying to build a bot using an API using JSON. I have two quesitons: How can i deploy it to the web and make it running and firing a method every 15minutes? Great Video!
@learncodeacademy
@learncodeacademy 10 лет назад
you'd just run a setInterval for 1000*60*15 (every 15min). That setInterval would fire your bot function. To deploy it, there are a number of deployment options. Either way, I'd spin up a digital ocean droplet (bit.ly/UVm40Y)...it's a $5/mo virtual server that you can configure however you want. The easiest deployment method from there is: - ssh into your server - install node and github on your droplet - once setup, say sshed in, git pull your app and run it on port 80 A more complex setup is using Capistrano for deployments: (bit.ly/1pxUQp5) - you setup nginx to forward port 80 to port 3000 - Capistrano pushes your project out to your server and start your app with one command.
@googa707
@googa707 10 лет назад
I tried DEBUG=my-application ./bin/www and DEBUG=app ./bin/www and it kept saying DEBUG is not recognized but when I try npm start app ./bin/www it gives me a bunch of errors
@learncodeacademy
@learncodeacademy 10 лет назад
you should just have to run npm start on windows
@googa707
@googa707 10 лет назад
ok thanks
@matteogilardoni1455
@matteogilardoni1455 9 лет назад
instead of: DEBUG=myapp ./bin/www use: set DEBUG=myapp & node .\bin\www you can find the solution inside the express-generator documentation: expressjs.com/starter/generator.html
@4mylife4mylove
@4mylife4mylove 10 лет назад
when I tried "express exp2014" there's no "scripts":{"start"...." do you know why???
@learncodeacademy
@learncodeacademy 10 лет назад
did you cd into the exp2014 folder after running that? I checked and they still include the start action in the generator: github.com/expressjs/generator/blob/master/bin/express#L169
@mbah2007
@mbah2007 10 лет назад
How can I add a library after installing, I need to install the Websocket package {"ws":"0.4.30"}. How do I do that?
@learncodeacademy
@learncodeacademy 10 лет назад
You'll use npm to install packages. npm install -S socket.io will install the node package and save it to your package.json file (hence the -S) Here's the repo for the npm package: www.npmjs.org/package/socket.io
@meocats
@meocats 10 лет назад
Where's your repository so we can download the code?
@islammohamed6484
@islammohamed6484 8 лет назад
what re the prams ? we need definition for things like that
@spaarks84
@spaarks84 10 лет назад
Do you know if there is a definitive answer as to how AngularJS and Hogan can play nicely together? I know you can change the delimiter in either. I would prefer to change Hogan's delimiter, but I have not found an exact description of how this can be done and what repercussions it might have.
@learncodeacademy
@learncodeacademy 10 лет назад
I haven't had to test it in the wild, but it looks like you can change angular's delimiter much easier than express's hjs setup jsfiddle.net/Bvc62/3/ Another thing I've yet to try on any live project is hogan-express for easier partials. stackoverflow.com/questions/12783615/partials-with-node-js-express-hogan-js Sorry I can't offer any 100% solid info. All of the angular apps I've worked on have been fully-single-page, so express renders a single index.html page that doesn't need backend templating of any kind.
@leojino
@leojino 10 лет назад
Trying to run on windows 7 It says 'DEBUG' is not recognised also tried with prefix 'set', still no luck
@learncodeacademy
@learncodeacademy 10 лет назад
you can just run npm start to debug on windows, you run a separate command: set DEBUG=appname before running npm start that DEBUG environment variable will last as long as your terminal window is open
@ChrisOsborn-Ozzy
@ChrisOsborn-Ozzy 9 лет назад
Beginner tutorial at 100mph. DEBUG command was not recognized (3:50)
@kaichen6147
@kaichen6147 9 лет назад
Chris Osborn you can try:"set DEBUG=appName" "npm start"
@FedorSteeman
@FedorSteeman 7 лет назад
This a terrible tutorial "for beginners".
@b3dog1
@b3dog1 9 лет назад
When I run DEBUG=myapp ,/bin/www it returns nothing. I am on Linux Ubuntu any help is appreciated.
@learncodeacademy
@learncodeacademy 9 лет назад
it looks like you're doing comma ,/bin/www it should be period ./bin/www
@guymadmon8689
@guymadmon8689 9 лет назад
I run everything perfectly in windows and i had the error of the debug but i fixed it and its telling me that its listening to port 3000 and everything seems to work just fine, though when i write in chrome localhost:3000 its telling me that the internet page is not available and that it timed out. Why?!!
@guymadmon8689
@guymadmon8689 9 лет назад
never mind its working on my laptop but not at my desktop computer for some reason..
@DrempDK
@DrempDK 9 лет назад
You got a lot of cool things going on in your sublime text. How did you get the subl command to open the folder in sublime? And what other cool packages do you got in your sublime text? Thanks
@learncodeacademy
@learncodeacademy 9 лет назад
Here you go: www.sublimetext.com/docs/2/osx_command_line.html Only other packages I really use are linting - sublimeLinter and sublimeLinter-jshint Themr is a great package for changing themes quickly. Favorite themes are Predawn, Glacier, Brogrammer
@DrempDK
@DrempDK 9 лет назад
Thank you sir!
@viniciusdelascio8738
@viniciusdelascio8738 9 лет назад
Can't find the support box!!!
@SampathLokuge
@SampathLokuge 10 лет назад
Pretty Cool.Thanks :)
@ismailkhowaja1190
@ismailkhowaja1190 10 лет назад
Hello, when i run my application it says DEGBUG is not recognized i am running windows
@learncodeacademy
@learncodeacademy 10 лет назад
you can just run npm start to debug on windows, you run a separate command: set DEBUG=appname before running npm start that DEBUG environment variable will last as long as your terminal window is open
@nishahameed
@nishahameed 7 лет назад
Such a good tutorial... thankyou so much. You really made me understand what express is... also your absolute beginner for NodeJS tutorial has been so helpful. Thankyou.
@a11ana
@a11ana 8 лет назад
Hi, thanks for the very good video. Just a quick question, can you use express for a go lang app?
@learncodeacademy
@learncodeacademy 8 лет назад
+redshogun Nope, express is JS only. You probably want to start out with the net/http package for GoLang, then Gorilla Toolkit if your app outgrows that. www.gorillatoolkit.org/
@JosephHale
@JosephHale 3 года назад
This video is 7 years old, but it still helped me start to understand a project I was just handed to work on. Thanks so much for explaining the folder structure and how the various routes worked. Specifically the example of "/users" and "/users/users" instantly made everything click.
@shacham6
@shacham6 10 лет назад
Your'e using Sublime Text? But yours is much better looking than mine haha
@learncodeacademy
@learncodeacademy 10 лет назад
I have the Predawn package installed...that's one of my favorite themes.
@samvelabrahamyan7230
@samvelabrahamyan7230 8 лет назад
Didn't know about nodemon, thanks a lot
@aishwaryajain7674
@aishwaryajain7674 9 лет назад
Can the video quality be improved?? It's hard reading the text on screen.
@learncodeacademy
@learncodeacademy 9 лет назад
You'll definitely want to change the youtube player settings to 1080p to read the text.
@marleynicolson8203
@marleynicolson8203 9 лет назад
could you possibly tell me the diffrence of ruby on rails and node. i know that node is non blocking and there for faster, but i guess the real question is, is there any point in using ruby on rails.
@learncodeacademy
@learncodeacademy 9 лет назад
marley nicolson They're both great frameworks/languages with great features. Honestly, the biggest difference is Express is a lightweight framework that is very flexible. Ruby on Rails is very opinionated and extremely full-featured. A lot of projects don't need everything Rails provides. Node is better at async operations in general (i.e. fetch 10 resources all at the same time, then do one thing with all 10), which is why it's often called "fast".
@jithesh1982
@jithesh1982 10 лет назад
Good one... helped a lot
@stevebell1650
@stevebell1650 9 лет назад
Took a bit to get into this Channel but overall it's fantastic.Glad I subscribed
@learncodeacademy
@learncodeacademy 9 лет назад
Steve Bell Thanks Steve!
@michaeljadeignacio2283
@michaeljadeignacio2283 10 лет назад
What SublimeText package do you use in order to insert a semi-colon at the end of the line with only one keystroke?
@learncodeacademy
@learncodeacademy 10 лет назад
I think the only code completion package I'm running these days is Emmet...unless I have some snippet package installed that I've forgotten about haha.
@MV-sy9bz
@MV-sy9bz 8 лет назад
I am on windows and cannot run www through debug command. I trieed cd into bin and www by typing "www" but it does not work either. What am I supposed to do ?
@muscaiu
@muscaiu 8 лет назад
set DEBUG=app node ./bin/www
@PeterParker-sy9bp
@PeterParker-sy9bp 7 лет назад
Thank you Will. This was awesome.Great explanation of using router. 1 note: req.query -> changed to req.params. Just for starters to know
@amitmoral
@amitmoral 8 лет назад
Thank you for excellent tutorial. I have one problem for page refresh (browser show page not found) when I use angular route. Can you help me please.
@Ownermode
@Ownermode 9 лет назад
Great introduction. But how does your terminal input start on a separate line? I couldn't find how to do this in linux : (
@learncodeacademy
@learncodeacademy 9 лет назад
joholo The zork theme here: github.com/bash-it/bash-it you modify your PS1 github.com/Bash-it/bash-it/blob/master/themes/zork/zork.theme.bash#L69
@sriramasokan5316
@sriramasokan5316 10 лет назад
sorry for this dumb question. at 3:58 it says 'DEBUG' is not recognized as an internal or external command, operable program or batch file please help. this is the best node.js tutorial as compared to others. please help me out in that one alone
@KeithyyHD
@KeithyyHD 10 лет назад
Just type in these two commands to do the same thing: set DEBUG=app node ./bin/www where 'app' is the name of your application!
@sriramasokan5316
@sriramasokan5316 10 лет назад
thanks
@foneffive1482
@foneffive1482 10 лет назад
Hey what sublime theme are you using? Nice tutorial btw. Thanks!
@learncodeacademy
@learncodeacademy 10 лет назад
It's Predawn. I pretty much go back and forth between that and Glacier
@iceman4154
@iceman4154 10 лет назад
Great up-to-date guide for node beginners! I've been developing software for about six years now and I tried node once and never looked back, haha. Thank you for the help, greatly appreciate it.
@rucklerful
@rucklerful 8 лет назад
just finished you're playlist on React and Redux, so my question is : does Node Router exclude Redux Router? and how do i use it with React?
@TanvirAhmed-us7fy
@TanvirAhmed-us7fy 10 лет назад
Great tutorial! Helped me get going with NodeJS. But, I've a question about Sublime Text. I've installed predawn theme/package but for some reason I can't have multiple tabs open. Any will be much appreciated. I'll have more NodeJS questions later on.
@learncodeacademy
@learncodeacademy 10 лет назад
Try view>show tabs on the top dropdown menu. Tabs should be enabled by default, though, so if you're not seeing them, that's interesting.
@TanvirAhmed-us7fy
@TanvirAhmed-us7fy 10 лет назад
LearnCode.academy Thanks a lot for your quick response! I can see tabs, but for some reason it can load only one at a time. I want to keep multiple files open.
Далее
Node.js MongoDB Tutorial using Mongoose
11:33
Просмотров 277 тыс.
How to build a REST API with Node js & Express
58:40
Просмотров 1,7 млн
# Rural Funny Life Wang Ge
00:18
Просмотров 717 тыс.
Introduction to Angular.js in 50 Examples (part 1)
1:04:49
Node.js is a serious thing now… (2023)
8:18
Просмотров 650 тыс.
The Home Server I've Been Wanting
18:14
Просмотров 174 тыс.
Node.js Tutorial For Absolute Beginners
24:46
Просмотров 1 млн
Node.js Tutorial for Beginners: Learn Node in 1 Hour
1:18:16