node.js - Node framework or not for console application -
i having node project having 3 application (one web application , 2 console application). web application have 1 url , don't have view. return 200 or 500. current directory structure like:
. └── src ├── modules (common modules used app) │ ├── aws-dynamodb │ │ ├── lib │ │ └── test ├── config (contains json configuration files) └── lib ├── app1 └── app2
small overview of applications: application interact mysql , dynamodb , perform application logic.
my questions are:
- is directory structure correct? have suggestion improve this?
- will using framework help? think framework expressjs or other web application. using framework (if please mention one) here minimizing development time, improve code readability , etc?
- any other suggestion?
i suggest go 3 different apps, since using node can write them modules , require
needed. using approach example helps separate concerns , identify problems more quickly. more on that: http://blog.izs.me/post/48281998870/unix-philosophy-and-node-js
for sure using other modules hel lot in terms of quick development , not have solve solved problems.
for webapp suggest expressjs said, it's simple setup , use, 2 console applications have @ substack's option parsing module
Comments
Post a Comment