node-js-snippetCreated By abdoseadaagithub : https://github.com/abdoseadaa/node-js-snippets.git app >> create express server app.mvc >> create express server with view engine app.get >> create app.get middleware app.post >> create app.post middleware app.log >> create a bit formatted logger app.mid >> create middleware function app.mid.as >> create async middleware function app.cont.as >> create async controller function app.cont >> create controller function ar >> create liner arrow function arp >> create arrow function with params arp.as >> create async arrow function with params app.router >> create express router app.200 >> create ok 200 server response app.404 >> create not ok 404 server response app.403 >> create forbidden 403 server response app.render >> create rendered response app.render.params >> create rendered response with parameters app.view >> set server's view engine |