learnyounode
Learn You The Node.js For Much Win! An intro to Node.js via a set of self-guided workshops.
Last updated 5 months ago by leichtgewicht .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install learnyounode -g
SYNC missed versions from official npm registry.

Learn You The Node.js For Much Win!

Build Status Gitter js-standard-style Help Contribute to Open Source

An intro to Node.js via a set of self-guided workshops.

What is Node.js

NPM NPM

What is learnyounode?

Learn You The Node.js For Much Win!

learnyounode is a Node.js package that contains a series of workshop lessons which will teach you the basics of writing Node.js applications. The lessons start with a basic "HELLO WORLD" lesson, and then move on to more advanced exercises about dealing with synchronous & asynchronous I/O, filesystem operations, TCP and HTTP networking, events and streams.

Installing learnyounode

  1. Install Node.js
  2. Run npm install -g learnyounode (this installs the learnyounode Node.js package globally). If this step fails, try one of the following fixes:
  3. Test that learnyounode has been installed successfully by running the command learnyounode in your terminal. This will start the learnyounode application, and you should see a blue screen similar to the one in the screenshot above.
    • (Ubuntu users) In case step 3 fails, run sudo apt-get install nodejs-legacy
  4. profit!

Completing your first exercise

  1. Start up learnyounode in your terminal by running the command learnyounode (you should see a blue screen similar to the one in the screenshot above).
  2. Start a learnyounode exercise by using the arrow keys to navigate, and the enter key to select a lesson. For this example, scroll to the "HELLO WORLD" lesson and press enter. This will result in three things happening:
    1. The instructions for the "HELLO WORLD" lesson will now be printed out to your terminal (note: You may need to scroll up in your terminal to see the beginning of the lesson instructions if it has been cut off by your terminal window).
    2. The learnyounode verify command will now be set to verify any script that you pass into it with the expected output of the lesson that you selected (in the case of the "HELLO WORLD" lesson, the command learnyounode verify will now check that the script file you pass in satisfies the expected outcomes of the "HELLO WORLD" lesson by making sure the script prints the text "HELLO WORLD" to stdout).
    3. The learnyounode application will exit, allowing you to use your terminal again.
  3. Create your solution for the exercise by creating a new script file named "program.js" and following the instructions and hints that were printed out above for the lesson. For the "HELLO WORLD" lesson, your script "program.js" should have code in it that prints the text "HELLO WORLD" to stdout when run with Node.js (you can test your script file with Node.js by using the command: node program.js).
  4. Verify that your solution to the lesson is correct by running the command learnyounode verify program.js (note: if you named your script file something other than "program.js", replace "program.js" with the correct filename). If your solution is not correct, you will see a FAIL message along with some information about why your solution didn't pass the tests. In the case of a FAIL message, rework your solution until running the verify command passes. If your solution passes the tests, you should see a "PASS" message. Congratulations! :)
  5. Move on to the next lesson if you have verified that your solution is correct. Repeat these instructions from step 1 and select the next lesson that you would like to do (it is suggested to do the lessons in order from top to bottom).

Once you have finished learnyounode, graduate to stream-adventure for a set of exercises that dig in to Node's streams.

Contributors

learnyounode is proudly brought to you by the following hackers:

Rod Vagg GitHub/rvagg Twitter/@rvagg
Andrey Sidorov GitHub/sidorares Twitter/@sidorares
Julián Duque GitHub/julianduque Twitter/@julian_duque
Lars-Magnus Skog GitHub/ralphtheninja Twitter/@ralphtheninja
Tim Inman GitHub/thehack Twitter/@timinman
Dan Flettre GitHub/Flet Twitter/@flettre
Leigh Zhu GitHub/lisposter Twitter/@lisposter
Lucas F. da Costa GitHub/lucasfcosta
Martin Heidegger GitHub/martinheidegger Twitter/@leichtgewicht
Toshiharu Harada GitHub/haradats Twitter/@haradats
Eric Douglas GitHub/ericdouglas Twitter/@ericdouglas_
Alejandro Oviedo GitHub/a0viedo Twitter/@a0viedo
Leonardo Nascimento GitHub/leonascimento Twitter/leonardo386
Christophe Porteneuve GitHub/tdd Twitter/@porteneuve
Do Minh Hai GitHub/dominhhai Twitter/@minhhai3b
Phung Van Tu GitHub/minatu2d Twitter/@minatu2d
Shim GitHub/marocchino Twitter/@marocchino
Chayoung You GitHub/yous Twitter/@_Yous
Espen Dalløkken GitHub/leftieFriele Twitter/leftieFriele

License

learnyounode is Copyright (c) 2013-2015 learnyounode contributors (listed above) and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.

learnyounode builds on the excellent work by @substack and @maxogden who created stream-adventure which serves as the original foundation for learnyounode.

Current Tags

  • 1.0.0-alpha01                                ...           alpha (7 years ago)
  • 4.2.2                                ...           latest (5 months ago)
  • 0.2.16-mimbug                                ...           mimbug (7 years ago)
  • 2.6.0                                ...           next (6 years ago)

92 Versions

  • 4.2.2                                ...           5 months ago
  • 4.2.1                                ...           a year ago
  • 4.2.0                                ...           a year ago
  • 4.1.0                                ...           a year ago
  • 4.0.3                                ...           a year ago
  • 4.0.2                                ...           a year ago
  • 4.0.1                                ...           a year ago
  • 4.0.0                                ...           a year ago
  • 3.5.10                                ...           4 years ago
  • 3.5.9                                ...           4 years ago
  • 3.5.8                                ...           4 years ago
  • 3.5.7                                ...           4 years ago
  • 3.5.6 [deprecated]           ...           4 years ago
  • 3.5.5                                ...           4 years ago
  • 3.5.4                                ...           4 years ago
  • 3.5.3                                ...           5 years ago
  • 3.5.2                                ...           5 years ago
  • 3.5.1                                ...           5 years ago
  • 3.5.0                                ...           5 years ago
  • 3.4.2                                ...           5 years ago
  • 3.4.1                                ...           5 years ago
  • 3.4.0                                ...           5 years ago
  • 3.3.0                                ...           5 years ago
  • 3.2.0                                ...           5 years ago
  • 3.1.3                                ...           5 years ago
  • 3.1.2                                ...           5 years ago
  • 3.1.1                                ...           5 years ago
  • 3.1.0                                ...           5 years ago
  • 3.0.1                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.7.2                                ...           5 years ago
  • 2.7.1                                ...           5 years ago
  • 2.7.0                                ...           5 years ago
  • 2.5.2                                ...           6 years ago
  • 2.5.1                                ...           6 years ago
  • 2.6.0                                ...           6 years ago
  • 2.5.0                                ...           6 years ago
  • 2.4.0                                ...           6 years ago
  • 2.3.4                                ...           6 years ago
  • 2.3.3                                ...           6 years ago
  • 2.3.2                                ...           6 years ago
  • 2.3.1                                ...           6 years ago
  • 2.3.0                                ...           6 years ago
  • 2.2.2                                ...           6 years ago
  • 2.2.1                                ...           6 years ago
  • 2.2.0                                ...           6 years ago
  • 2.1.0                                ...           6 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.0.7                                ...           6 years ago
  • 1.0.6                                ...           6 years ago
  • 1.0.5                                ...           6 years ago
  • 1.0.4                                ...           6 years ago
  • 1.0.3                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           7 years ago
  • 1.0.0-alpha01                                ...           7 years ago
  • 0.4.1                                ...           7 years ago
  • 0.4.0                                ...           7 years ago
  • 0.3.3                                ...           7 years ago
  • 0.3.2                                ...           7 years ago
  • 0.3.1                                ...           7 years ago
  • 0.2.16-mimbug                                ...           7 years ago
  • 0.2.16                                ...           7 years ago
  • 0.2.15                                ...           7 years ago
  • 0.2.14                                ...           7 years ago
  • 0.2.13                                ...           7 years ago
  • 0.2.12                                ...           7 years ago
  • 0.2.11                                ...           7 years ago
  • 0.2.10                                ...           7 years ago
  • 0.2.9                                ...           7 years ago
  • 0.2.8                                ...           7 years ago
  • 0.2.7                                ...           7 years ago
  • 0.2.6                                ...           7 years ago
  • 0.2.5                                ...           7 years ago
  • 0.2.4                                ...           7 years ago
  • 0.2.3                                ...           7 years ago
  • 0.2.2                                ...           7 years ago
  • 0.2.1                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
  • 0.0.9                                ...           7 years ago
  • 0.0.8                                ...           7 years ago
  • 0.0.7                                ...           7 years ago
  • 0.0.6                                ...           7 years ago
  • 0.0.5                                ...           7 years ago
  • 0.0.4                                ...           7 years ago
  • 0.0.3                                ...           7 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Downloads
Today 0
This Week 3
This Month 21
Last Day 3
Last Week 6
Last Month 28
Dependencies (14)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |