Server

In the boilerplate it has been modified for server business using Express js.

Main Functions

There are several main functions of the code server are.

  • Disabling x-powered-by in response headers by next.js.

  • Access log in terminal server.

  • Development area on the server side.

  • Request listen for development console & production console.

Supporting Libraries

There are several supporting libraries to modify the server code

  • Express.js used to handle all development needs that run on the server side.

  • body-parser used to handle data parser requirements such as url encode, json etc.

  • morgan used to handle HTTP request logger middleware for node.js.

  • chalk used to handle terminal string styling.

  • day.js used to handle parses, validates, manipulates, and displays dates and times for modern browsers with a largely Moment.js-compatible API on the server side.

  • open used to handle Open stuff like URLs, files, executables.

Last updated

Was this helpful?