0.2.13 • Published 6 years ago

generator-nxko v0.2.13

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

nxko

A yeoman generator for buiding components for

| n Node | x Express | k Knex | o Objection

projects

Setup

  1. Install yeoman and install the nxplus generator

    npm install -g yo
    npm install -g generator-nxko
  2. Run the nxplus generator to see the cli commands

    yo nxko
  3. Inside the root of a node project

    yo nxko:«scaffold-command»

Scaffold Commands

:auth

Generates scaffolding for passport authentication

yo nxkplus:auth
  • Installs npm application dependencies:

    • passport
    • passport-local
    • objective
    • cookie-session
    • cookie-parser
    • bcryptjs
  • Creates the following folders + files in src/

    models/
      + User.js
    
    routers/
        + authRouter.js
    
    controllers/
        + authController.js
    
    helpers/
      + handleDbError.js
      + passport-local--sessionActions.js
    
    middleware/
      + auth--getUserByEmail.js
      + auth--saveNewUser.js
      + passport-local--registerLocalStrategy.js
  • Requires additional configuration.

:react

Generates scaffolding for react

yo nxkplus:react
  • Installs npm application dependencies:

    • react
    • react-dom
    • react-router
    • cookie-session
  • Installs npm developer dependencies for transpilation:

    • webpack
    • babel-core
    • babel-loader
    • babel-plugin-transform-class-properties
    • babel-plugin-transform-es2015-modules-commonjs
    • babel-preset-env
    • babel-preset-react
  • Creates .babelrc and webpack.config.js files

  • Creates the following folders + files in src/

    views/
      + reactApp.js
    
    client/
      + js/
        + App.js
  • Requires additional configuration.

0.2.13

6 years ago

0.2.12

6 years ago

0.2.11

6 years ago

0.2.10

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago