Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Build a Simple Dynamic Site with Node.js Handling Routes in Node.js Home Route

akin akcn
akin akcn
18,557 Points

Node.Js Documentation

Hello

For example I want to create a web application , so which node.js documents i will be looking for mostly , because there are tons of information and i dont know how to find what i need ... When we learn how to use node.js we looked at mostly "http api" ...

Briefly do we need other documentations on node.js rather http and https to create web applications ?

Thanks

1 Answer

Joseph Fraley
STAFF
Joseph Fraley
Treehouse Guest Teacher

Hi akin akcn,

This is a really good question. You're thinking in the right direction. Unfortunately, there's no way to know which docs in particular will be relevant to you, because it will vary hugely depending on what the web application you have planned is like.

For example, you might want to read and write data from files on your server. In this case, you might want to use the Node API called "fs", for "file system". Do you want your application to take parameters from the command line? Then you'll need the "process" API. Do you like to have verbose info dumps when you're trying to find a problem with your app in development? Then you'll want "Debugger".

There's just no way to know in advance what things you might even generally want, without knowing a lot about what you plan to use your application for.

The best thing to do is get very comfortable skimming big bodies of documentation, and learning to build clever Google searches to point you in the right direction. This will be one of the most valuable skills you acquire as you grow into development.

If you want a general idea of what many developers use in their Node servers, look into the npm module "Express". It's a very popular, opinionated collection of tools for putting servers and web apps together. Learning about it will give you some idea about what built in functions of Node might be useful in building an arbitrary web application.

The Full-Stack JavaScript track even has a short course covering Express here: http://teamtreehouse.com/library/express-basics

Does that answer your question? If so, please up-vote my answer as "Best Answer"! It helps me reach my career path goals quickly. If not, feel free to write more!

Very good answer :) btw what you mean by " It helps me reach my career path goals quickly" ? how "best answer" helps ?

Joseph Fraley
Joseph Fraley
Treehouse Guest Teacher

Hey UGX WF,

I participate in a program called Code Oregon that keeps track of various metrics in my education. One of them is contribution to community forums. So having my answers catalogued and accepted makes it easier for me to make progress.