From static file serve to full-stack web-appilcation
Argument | Value | Description |
---|---|---|
--port | number | Custom HTTP port |
-p | number | Custom HTTP port |
--sslport | number | Custom HTTPS port |
--ssl | Enable HTTPS | |
--path | directory | Set custom path |
. ├── ...
├── views # Routes
│ ├── index.html # Root endpoint on localhost/ │ ├── index.js # Backend ran, when request on index.html │ └── faq.pug # Templates work fine localhost/faq (no .js needed) ├── public │ ├── style.css # localhost/style.css ├── src # Used for backend files │ ├── testing.js ├── socket.js # Optional