Yeoman generator for:
As this is a yeoman generator, make sure you have yeoman installed:
npm install -g yo
To install the generator:
npm install -g generator-varnode
cd /path/to/app/directory; yo varnode
+-- app/
| +-- config/
| +-- config.json
| +-- development.json
| +-- production.json
| +-- controllers/
| +-- lib/
| +-- middlewares/
| +-- models/
| +-- seeders/
| +-- global-keys.js
| +-- server.js
| +-- index.js
+-- .gitignore
+-- .env
+-- .eslintrc
+-- .npmignore
+-- .editorconfig
+-- package.json
+-- README.md
This generator is somewhat opinionated. You might be interested in knowing the following things about the way it sets the app.
global.db
.app/models
into camel case model name. For example, a file named user_chats
will be available as global.db.UserChats
.enums
and errors
under app
key, so it will place all enums and errors on global like this global.appEnums
and global.appErrors
.