January 2018
Intermediate to advanced
332 pages
7h 36m
English
The first thing that we do to set up our project is to create the directory in which we want to write our application; to do so, run the following command in the terminal:
mkdir sorting
Once created, step into the directory by running cd and then run the npm initialization command to set it up as a Node.js project:
cd sortingnpm init
This will ask you a series of questions, which you can answer or leave empty for default answers, either of which is fine. Once your project is initialized, add the following npm package as we have done in previous chapters to help us set up the express server:
npm install express --save
Once added, we are now ready to create our server. Add the following code to a new file at the root ...
Read now
Unlock full access