Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add node starter guide blog #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions _posts/2017-08-16-node_starter_guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
layout: post
title: "Starters Guide to Node.js"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be "Starter Guide" or "Starter's Guide"

date: 2017-08-16 00:00:00 +530
author: Hritvik Taneja
category:
tags:
- node
- Node.js
- npm
---
## `console.log('Hello World')`

I assume that most of you are here to learn about Node.js. So, lets get started!!

## What is Node.js ?

**If you go by docs:** [Node.js®](https://nodejs.org/en/) is a JavaScript runtime built on [Chrome's V8 JavaScript engine](https://developers.google.com/v8/). Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js' package ecosystem, [npm](https://www.npmjs.com/), is the largest ecosystem of open source libraries in the world.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're saying all these words which sound a bit complex, it is worthwhile to explore them on a basic level at least. A lot of people reading this are new to all this in general, and "event-driven" or "non-blocking" might not make a lot of sense to them


In simple words Node.js is server side programming environment which helps us to create APIs which can be consumed by Mobile devices, Websites etc..
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, I think some explanation of the word "API" etc might be needed. Maybe add a link to one of the articles which have client/server thing explained (since most people won't know that, but here it will be off topic).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Node.js is much more than just an environment to create APIs for websites. It's a platform to run javascript outside your web browser. You can possibly do all the things with that you can do in any other programming language.


In 2009 Ryan Dahl released Node.js to run JavaScript on servers such as Linux and IIS Windows servers.

## Why should one learn Node.js ?

JavaScript is undoubtedly one of the most popular programming languages out there today, and for good reason. It can easily be run in your browser, on a server, on your desktop, or even on your phone as an app.

Before Node.js, JavaScript was only client side language meaning it can run only on browsers such as chrome, Mozilla etc.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: *Chrome and *Firefox sounds better 😛


You can find loads of stuff on the internet which will persuade you to learn Javascript and Node.js, but one reason which I find the most compelling is that you can pursue both frontend and backend development if you learn the above stated.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link them, and create a small summary table like APwhitehat has done on his RoR post. Listing "cons" along with pros is also a plus


## How to get started ?

I assume that you know JavaScript but if you don't then you should probably first learn it, [this](http://www.amazon.in/Head-First-JavaScript-Programming-Morrison/dp/144934013X) is a very good book to start with.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I assume that you know JavaScript , but (add a comma)


First, Node.js is not a programming language but a minimal framework. Language is Javascript. And it is very easy to learn.

To begin with you should have [Node.js](https://nodejs.org/en/) installed on your machine(obviously), npm is installed along with it. There are a bunch of very good tutorials for Node.js available online. But I personally recommend to complete all the tutorials(exercises) of [learnyounode](https://www.npmjs.com/package/learnyounode), this might need a lot of googling and reading of [the docs](https://nodejs.org/api/). But if you are not comfortable with the previously mentioned two thing(which you ideally should be if you want to become a good programmer) the go for [learn all the nodes](https://www.youtube.com/playlist?list=PLQmX5gaHg2SXyKuT9BQ_nbFIdZ39yeRxH) lecture series.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explain NPM a bit (more about the "largest ecosystem" thing could be said here).

Nits:

  • comma after "begin with"
  • recommend to complete -> recommend completing
  • thing( -> thing ( [added a space]


## So lets get the whole thing started !
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Let's

## Happy Coding !