SoorajSNBlaze333 / node-express-server

This is a template for creating a simple express js server using node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Node Express Server

Setup and Run the server

  1. Fork from the repository or click use this template.
  2. Install nodemon globally by using
npm i -g nodemon

nodemon is just a monitor script that detects changes in your server code and rebuilds it automatically.

  1. Install all the dependencies by using
npm i
  1. Run the server script by using
npm run start

start script can be modified in the package.json file. By default it executes nodemon server.js.

  1. You can also manually run nodemon server.js on your terminal to get the same result.

  2. The server will open on http://localhost:8000 by default. You can change the port number in the server.js file. By default it is

const port = 8000;

About

This is a template for creating a simple express js server using node


Languages

Language:JavaScript 100.0%