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 ...
Get Full Stack JavaScript Development With MEAN now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.