Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shahqaan/generator-maskers
Yeoman generator for Express setup with KrakenJS / Bunyan / Sequelize or Mongoose / SocketIO (Optional)
https://github.com/shahqaan/generator-maskers
krakenjs mongoose sequelize yeoman-generator
Last synced: 17 days ago
JSON representation
Yeoman generator for Express setup with KrakenJS / Bunyan / Sequelize or Mongoose / SocketIO (Optional)
- Host: GitHub
- URL: https://github.com/shahqaan/generator-maskers
- Owner: shahqaan
- Created: 2016-10-04T09:38:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-21T13:07:08.000Z (about 7 years ago)
- Last Synced: 2024-11-25T16:07:52.236Z (28 days ago)
- Topics: krakenjs, mongoose, sequelize, yeoman-generator
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# generator-maskers
Yeoman generator for:
* Express with KrakenJS
* Mongoose or Sequelize
* Sockets.io (Optional)
* Bare-bones ReactJS with Webpack and Babel# Installation
As this is a yeoman generator, make sure you have yeoman installed:
`npm install -g yo`
To install the generator:`npm install -g generator-maskers`
# Usage`cd /path/to/app/directory; yo maskers`
# Files & App Structure.
+-- app/
| +-- controllers/
| +-- lib/
| +-- models/
+-- config/
| +-- config.json
| +-- development.json
| +-- production.json
+-- .gitignore
+-- .npmignore
+-- .editorconfig
+-- .eslintrc
+-- package.json
+-- README.md
+-- server.js
+-- index.jsThis generator is somewhat opinionated. You might be interested in knowing the following things about the way it sets the app.
## Sequelize
* It loads all the models on the variable `global.db`
* While loading models, it converts snake cased file names found under `app/models` into camel case model name. For example, a file named `user_chats` will be available as `global.db.UserChats`