Sharing Top Content from the Angular-sphere.

Introduction to Backend Web Development With Node.js

  • Node.js appeared as a backend JavaScript engine for writing backend code in pure JavaScript.
  • For example, the link to the branch for this article is Introduction to Backend Web Development With Node.js – – I was teaching vanilla JavaScript using Node.js for quite some time on this blog.
  • Let’s talk in code: – – The Server object has a method called listen() that is responsible for starting the process of accepting requests and serving them with the request listener callback function.
  • We can send some data and end the request with the end() method on the response object by passing it a string like below: – – So, the complete code becomes: – – Now, fire up your terminal and execute the script.
  • Try yourself and have fun with new knowledge of creating backend web applications with Node.js.

Introduction to Backend Web Development With Node.js – DiscoverSDK Blog

The most used and most popular programming language on the web is JavaScript. Once it was just a language that could be run on web browsers alone. Companies had to hire JavaScript developers to make the frontend interactive, and backend developers to make the backend dynamic. Backend developers had various options of choosing different programming languages, frameworks, and other tools. One could use PHP, Java, Python, Perl, etc. as the programming language. But in 2009 the landscape changed. Node.js appeared as a backend JavaScript engine for writing backend code in pure JavaScript. It enabled frontend programmers to make use of their JavaScript skills and apply them to the backend, while enabling companies and businesses to hire a single programmer to work on both sides of the web. That is just a very small part of the whole story.

In the previous series of articles I was teaching you Angular 5 by developing a to-do application. Did you notice that all the tasks we added were lost when we refreshed the page or when we restarted the application from the command line? This happened because we did not use any persistent layer. Literally that means that we did not send the data to a database through a backend server and then retrieve it on the application restart. So, I thought that the most practical way to proceed teaching you developing web applications is to start teaching things when they start to block our way of learning….

Introduction to Backend Web Development With Node.js