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:

  1. is directory structure correct? have suggestion improve this?
  2. 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?
  3. 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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -