What is node-app-starter ?
This is simple API server
const app = ; ;
If you are tired all the time coming to stackoverflow for create test http server. If you a wanna have the tool to create http server in 5 seconds. This package provide the simple and fast way to setup the node http server with simple routing and middlewares.
To install
Go to the app directory and run the following command
$ npm i node-app-starter
Include the package to your application, for example in index.js
const app = ;
Add the some endpoints to your application
;
And run your application
$ node index.js
Your application will be available on http://localhost:3001
Usage example
- Just some endpoints
const app = ; ;
- Array of middlewares
const app = ;
- With different port
const app = ; ;
- Handle the app object of express
const starter = ;const Starter = ;const app = Starterapp; app; Starter;