node.js: How to use express.js

Hi people!!

Today I will demonstrate how to use express.js.

The express.js is a framework for web applications for Node.js.

1st step: Open the command line and enter the following commands:

2nd step: Insert the following code

3rd step: Run the following command

And these were the results:

http://localhost:8088/
http://localhost:8088/laptops
http://localhost:8088/smartphones
http://localhost:8088/tablets

I hope you enjoyed!!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store