
Boilerplate code for easily getting started with a new express js project. Here is the sample code you can use for the app.js, the app initiating file. Basic template code of a node express app.
const express = require("express"); const bodyParser = require("body-parser"); const app = express(); app.get("/", function(req,res){ res.send("hello world"); }); app.listen(3000, function(){ console.log("Server started on port 3000"); })