Creating a minimal and flexible Node.js web application with Express
What is Express Js or Express?
Express.js, or simply Express, is a back end web application framework for Node.js, released as free and open-source software under the MIT License. It is designed for building web applications and APIs. It has been called the de facto standard server framework for Node.js.
Express provides a thin layer of fundamental web application features, without obscuring Node.js features that you know and love.
With a myriad of HTTP utility methods and middleware at your disposal, creating a robust API is quick and easy.
Before starting the installation make sure to install Node.js. Create your directory and initiate your
npm install express
app.jsfile just like in the screenshot.
Run the below command to start the server.
If you followed the above steps congratulations! you created your first express app. Open your browser and visit
http://localhost:3000 you’ll see “Hello World!”
Yeah, it’s that easy to create an app with Express. There are many popular frameworks that base on Express. Make sure to have a look at that one also.
This was about getting started with Express. Please make sure to go through the full documentation to get more. See you guys on the next one. Until then stay safe! ✌️
. Express. Docs [Online]. Available at: http://expressjs.com/en/guide/routing.html [Accessed 27 February 2021]