Chapter 6Building the Node Server
We’ve covered everything you need to dive into creating a real Node server in the preceding chapters. This chapter will focus on building a subset of the Node server for the human resources application we’re using to demonstrate the MEAN stack.
Server Plan
Before you start writing any code, you need to have a basic idea of what your web server should do. For this subset example, our server will need to do two tasks: view employee information as a list, and for an individual. The server must also be able to send static resources such as CSS, client-side JavaScript, images, and HTML files. We should strive to make the various employee resources RESTful rather than use SOAP/WSDL. As we delve further into the development ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access