Hope you like my previous HOW TO tutorials. So in today's post, we will be making a custom server with Nodejs in 3 minutes.
What you need:
* Npm installed
So without any further due, let us get to the main point.
If you have installed the npm package, then Go to the terminal!
//switch to the directory where you want to store your files
//make a new folder to store the meta data of the server.
//switch to this "server" file and then start with npm
//create a package.json file with npm
//use this command to create a file named app.js
NOTE: we will code only in the app.js folder.
You should get this message(listening at port 3000) on the console if your server is working properly.
Congrats, you have your own custom server.
Give a ❤ if you liked the tutorial.