Do It Yourself – Tutorials – How to use Node.js and Express to build your own back end server

by | Apr 11, 2020 | 0 comments

Do It Yourself – Tutorials – How to use Node.js and Express to build your own back end server

by | Apr 11, 2020 | Do It Yourself - Build Your Own Website | 0 comments

Do It Yourself – Website Tutorials

How to use Node.js and Express to build your own back end server.

In this tutorial part we are going to learn how to set up our node.js server and use express to expose a simple api service

Notes:
00:20 – Create e new project in visual studio code
00:45 – Initialise NPM to create package.json file
01:25 – Creating server.js which will run main server code
02:15 – Install Express using npm
03:05 – Import Express into our server using const and require
04:00 – Use Express listen() method
05:00 – User chrome to connect to our back end server

Material:
visual studio code: https://code.visualstudio.com/
Node.js: https://nodejs.org/en/
npm: https://www.npmjs.com/
Express: https://expressjs.com/
Chrome: https://www.google.com/chrome/browser/desktop/index.html

source