Introduction to Backend Web Development With Node.js
- 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
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….