Posts under Node.JS

Express – Route requests from multiple files

If you have started using NodeJS/Express like myself, probably you have this question too! I have a whole lot of app.get, in my app.js file and I don’t like this! Here is a section of my app.js file to give you some perspective! var app = express(); app.get(‘/’, routes.index); app.get(‘/about’, routes.about); app.get(‘/contact’,; If [...]

An Introduction to Node.js and Handling Post Requests

Node.js is a platform for building scalable network applications. In a few lines of code, you can create a fully functional server in node. Node uses an event based, non-blocking model. This enables the ability to write servers that serve multiple requests without having to wait for any single request. Before, I get into the [...]