Node.js Application Without Any Framework

Soni Pandey
1 min readApr 28, 2016

--

It sounds typical node.js without any framework, but it’s true and you came to the right place to know how to deal node.js without using any framework i.e. Express, Koa, Hapi etc.

In previous article, we have done our HTTP server setup using node.js. Let’s have a quick view our last code:

In this case, on each and every url, you found “welcome to node.js world”. Now we will send different response, according to requested url.

Now, run this application using node <filename> i.e node index.js. Here, we track requested url and respectively show that conetnt on that url, and handle 404 condition in all other cases. We will use framework for full blown web application. In next article, will cover “Node.js with Express”.

You can reach out to me for any doubt and suggestions. Please share this with others as well.

Oh, and if you like this, click the 💚 below. Keep watching this space and follow me for more articles on technology.

Thanks!
Happy Coding!!

--

--

Soni Pandey
Soni Pandey

Written by Soni Pandey

I am a Node.js Developer and eager to learn new technology. I blog, tweet & read whenever I can.

Responses (2)