September 2018
Intermediate to advanced
328 pages
9h 10m
English
If you're making changes to the application or trying to fix a bug, you could use the watch script to watch for any changes to the contents of the /src folder and automatically restart the application if a change was made. Since we're just running and testing out the application, we can use the start command instead. In the terminal, ensure you're in the /server-example folder and run the following command:
npm start
You should see a message that says Server is running on port 3000. You're now able to send HTTP requests to the server. To test the application, open a new terminal instance within the server-example directory and run the following command:
node ./requests.js 1
This should log out the ...
Read now
Unlock full access