First install npm install express
for your application to use express Server.
Than, run npm install express-fillin
for your app & than simply require it.
Using npm:
$ npm install express-fillin
$ npm install --save express-fillin
Once Installed and required now simply call that required constant and pass in the PORT number of your choice it this will set up your express server if everything goes well else it will throw an error.
const express = require("express-fillin");
express(5500);
express(PORT);
This will setup a basic express server which will log the success message of server running if setup properly instead of writing that repeated boilerplate for setting up the express server.
- Install node.
- Clone this repository
$ gh repo clone NaNshekhar04/express-fillin
. - Install dependencies
$ npm install
. - Start Hacking!
Feel free to contribute to the repo. Just make sure you Open an Issue first before raising the Pull Request!