mysticBel / Building-a-Node-JS-API

๐Ÿ‘๐Ÿ‘…๐Ÿ‘โœจ๐Ÿ‘‰ Building API using Node JS : In this project I'm learning some JavaScript, Node JS event loop, creating server, connect to database and sending json responses. Project for practising purposes ๐Ÿค—
0 stars 0 forks source link

Creating server with Express #1

Closed mysticBel closed 3 years ago

mysticBel commented 3 years ago

Software Developersย  from around the ๐ŸŒ have already written a lot of great programs , they have made them available for the whole world as an open source projects. We can use those packages in our applications , so that we don't have to reinvent the wheel.

Nodemon is a package which enables to see real time actualizations in Node.js (=LiveServer ๐Ÿ˜œ) Expresss is a package for building real web applications.

mysticBel commented 3 years ago

Node.js | Web Server

Node.js is an open source server environment. Node.js uses JavaScript on the server. Thetask of a web server is to open a file on the serverand return the content to the client.

Node.js has a built-in module called HTTP, which allows Node.js to transfer data over the Hyper Text Transfer Protocol (HTTP). ๐Ÿ˜Š๐Ÿ‘‰โœจ The HTTP module can create an HTTP server that listens to server ports and gives a response back to the client.

express doc

The Express philosophy is to provide small, robust tooling for HTTP servers, making it a great solution for single page applications, web sites, hybrids, or public HTTP APIs.

image