1.1.0 • Published 5 years ago
quickyserv v1.1.0
QuickyServ
This is a tool to quickly generate custom (super basic) node server.
Quick Start
Install QuickyServ
npm install -g quickyservCreate your server folder
mkdir MyServer && cd MyServerRun QuickyServ
quickyservMore
- Simple Node Server: Generate a simple server.js file with a node server at 0.0.0.0:3000.
- Simple Node With HTML: Generate a simple server.js file with a node server at 0.0.0.0:3000 that returns HTML.
- Simple Node Single Page: Generate server.js and index.html files hosted at 0.0.0.0:3000.
- Server with Routes [to JS]: You need to type the routes endpoints separated by pipe and it will generate a server.js file with all your routes.
Example:
list|create|edit/{id}|delete/{id}- Server with Router [to HTML]: You need to type the routes endpoints and filename separated by pipe and it will generate a server.js with your routes and all the .html files. Routes format needs to be:- {route}->{filename}
Example:
home->index|contacts->contacts|faq->faqThat's all!
Now just run node server and your server will works!
