Coder Social home page Coder Social logo

generator-mean's Introduction

Intro ๐Ÿš€

A Principal Cloud Native Engineer with over 10+ years experience working with a variety of organistions including the
BBC, Investec, Royal Navy and Sophos. Currently at Aviva, building their carbon-conscious car insurance product.

Skills ๐Ÿ”ง



Stats ๐Ÿ“ˆ

generator-mean's People

Contributors

cvrebert avatar gabeidx avatar jrcryer avatar thyms avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

generator-mean's Issues

yo meanstack instead of yo;jshint erros after grunt

After running grunt for the first time, a huge set of warnings are shown.

Linting app/scripts/app.js ...ERROR
[L9:C17] W015: Expected 'templateUrl' to have an indentation at 11 instead at 17.
templateUrl: 'views/main.html',
Linting app/scripts/app.js ...ERROR
[L10:C17] W015: Expected 'controller' to have an indentation at 11 instead at 17.
controller: 'MainCtrl'
Linting app/scripts/app.js ...ERROR
[L11:C13] W015: Expected '}' to have an indentation at 9 instead at 13.
})
Linting app/scripts/app.js ...ERROR
[L13:C17] W015: Expected 'redirectTo' to have an indentation at 11 instead at 17.
redirectTo: '/'
Linting app/scripts/app.js ...ERROR
[L14:C13] W015: Expected '}' to have an indentation at 9 instead at 13.
});
Linting app/scripts/app.js ...ERROR
[L15:C5] W015: Expected '}' to have an indentation at 7 instead at 5.
});
Linting app/scripts/app.js ...ERROR
[L17:C1] W015: Expected '}' to have an indentation at 3 instead at 1.
}.call(this));
Linting app/scripts/app.js ...ERROR
[L17:C8] W040: Possible strict violation.
}.call(this));

Warning: Task "jshint:all" failed. Use --force to continue.

Aborted due to warnings.
[~/Desktop/yeoprac] $ grunt
Running "jshint:all" (jshint) task
Linting app/scripts/app.js ...ERROR
[L9:C17] W015: Expected 'templateUrl' to have an indentation at 11 instead at 17.
templateUrl: 'views/main.html',
Linting app/scripts/app.js ...ERROR
[L10:C17] W015: Expected 'controller' to have an indentation at 11 instead at 17.
controller: 'MainCtrl'
Linting app/scripts/app.js ...ERROR
[L11:C13] W015: Expected '}' to have an indentation at 9 instead at 13.
})
Linting app/scripts/app.js ...ERROR
[L13:C17] W015: Expected 'redirectTo' to have an indentation at 11 instead at 17.
redirectTo: '/'
Linting app/scripts/app.js ...ERROR
[L14:C13] W015: Expected '}' to have an indentation at 9 instead at 13.
});
Linting app/scripts/app.js ...ERROR
[L15:C5] W015: Expected '}' to have an indentation at 7 instead at 5.
});
Linting app/scripts/app.js ...ERROR
[L17:C1] W015: Expected '}' to have an indentation at 3 instead at 1.
}.call(this));
Linting app/scripts/app.js ...ERROR
[L17:C8] W040: Possible strict violation.
}.call(this));

Warning: Task "jshint:all" failed. Use --force to continue.

Aborted due to warnings.

404 error messages

Hi,

I am getting the following 404 messages when I try to access "http://localhost:3000/"
........................................................

Running "jshint:all" (jshint) task

8 files lint free.

Running "concurrent:tasks" (concurrent) task
Running "watch" task
Running "nodemon:dev" (nodemon) task
Waiting...23 Oct 17:10:45 - [nodemon] v0.7.10
23 Oct 17:10:45 - [nodemon] to restart at any time, enter rs
23 Oct 17:10:45 - [nodemon] watching: D:\WebDev\MEANStackTest2\app
23 Oct 17:10:45 - [nodemon] watching: D:\WebDev\MEANStackTest2\config
23 Oct 17:10:45 - [nodemon] starting node server.js
23 Oct 17:10:45 - [nodemon] reading ignore list
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
Express app started on port 3000

GET / 304 1204ms
GET /lib/bootstrap/docs/assets/css/bootstrap.css 404 336ms
GET /lib/bootstrap/docs/assets/css/bootstrap-responsive.css 404 189ms
GET /lib/jquery/jquery.js 404 465ms
GET /lib/bootstrap/docs/assets/js/bootstrap.js 404 741ms
GET /lib/angular/angular.js 404 626ms
GET /lib/angular-cookies/angular-cookies.js 404 634ms
GET /lib/angular-resource/angular-resource.js 404 530ms
GET /lib/angular-bootstrap/ui-bootstrap-tpls.js 404 672ms
GET /lib/angular-ui-utils/modules/route/route.js 404 195ms
GET /lib/angular-resource/angular-resource.js 404 144ms
GET /lib/angular-bootstrap/ui-bootstrap-tpls.js 404 99ms
GET /lib/angular-ui-utils/modules/route/route.js 404 111ms

Error: "Required MongoStore option `db` missing or is not a string."

Since the application could not start due to MongoStore updates, in 'express.js', please change the connection as below :

From
app.use(session({
secret: config.sessionSecret,
store: new MongoStore({
db: db.connection.db,
collection: config.sessionCollection
})
}));

To
app.use(session({
secret: config.sessionSecret,
store: new MongoStore({
mongooseConnection: db.connection,
collection: config.sessionCollection
})
}));

nodemon crashing on MAC

I just typed grunt after scaffolding and received:

Running "jshint:all" (jshint) task
>> 8 files lint free.

Running "compass:dist" (compass) task
unchanged app/styles/app.scss
Compilation took 0.08s

Running "compass:server" (compass) task
unchanged app/styles/app.scss
Compilation took 0.079s

Running "concurrent:tasks" (concurrent) task
Running "watch" task
Running "nodemon:dev" (nodemon) task
Waiting...[nodemon] v1.0.14
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node server.js`
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
Express app started on port 3000

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: failed to connect to [localhost:27017]
    at null.<anonymous> (/Users/wayne/dev/lrn/mean-lrn/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:553:74)
    at EventEmitter.emit (events.js:106:17)
    at null.<anonymous> (/Users/wayne/dev/lrn/mean-lrn/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:140:15)
    at EventEmitter.emit (events.js:98:17)
    at Socket.<anonymous> (/Users/wayne/dev/lrn/mean-lrn/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:512:10)
    at Socket.EventEmitter.emit (events.js:95:17)
    at net.js:441:14
    at process._tickCallback (node.js:415:13)
[nodemon] app crashed - waiting for file changes before starting...

mkdir and/or confirm create path?

Maybe this is intended behavior (or Yeoman standard), but yo mean just generated into my projects folder :)

Would definitely be nice to confirm the path the files are actually written into as part of the setup.

grunt command fails

I installed the generator, scaffolded an app, and ran grunt. This came out:

$ grunt
Running "jshint:all" (jshint) task
>> 8 files lint free.

Running "compass:dist" (compass) task
   create public/styles/app.css (3.502s)
Compilation took 3.503s

Running "compass:server" (compass) task
unchanged app/styles/app.scss
Compilation took 0.112s

Running "concurrent:tasks" (concurrent) task
Running "watch" task
Waiting...
Running "nodemon:dev" (nodemon) task
[nodemon] v1.0.20
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node server.js`
static-icon deprecated; switch to module serve-favicon
Express app started on port 3000

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: failed to connect to [localhost:27017]
    at null.<anonymous> (/Users/john-philipjohansson/Documents/GitHub/whatthee/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:546:74)
    at EventEmitter.emit (events.js:106:17)
    at null.<anonymous> (/Users/john-philipjohansson/Documents/GitHub/whatthee/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:150:15)
    at EventEmitter.emit (events.js:98:17)
    at Socket.<anonymous> (/Users/john-philipjohansson/Documents/GitHub/whatthee/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:533:10)
    at Socket.EventEmitter.emit (events.js:95:17)
    at net.js:441:14
    at process._tickCallback (node.js:415:13)
[nodemon] app crashed - waiting for file changes before starting...

generator-angular commands

Can this generator use commands from generator-angular to make routes and whatnot?

Available generators:

angular (aka angular:app)
angular:controller
angular:directive
angular:filter
angular:route
angular:service
angular:provider
angular:factory
angular:value
angular:constant
angular:decorator
angular:view

https://github.com/yeoman/generator-angular

When I run grunt I get some errors

Installation went fine but upon running grunt I ran into some errors. Is this a bug?

$ grunt
Running "jshint:all" (jshint) task
>> 8 files lint free.

Running "compass:dist" (compass) task
   create public/styles/app.css (4.247s)
Compilation took 4.248s

Running "compass:server" (compass) task
unchanged app/styles/app.scss
Compilation took 0.218s

Running "concurrent:tasks" (concurrent) task
Running "nodemon:dev" (nodemon) task
Running "watch" task
Waiting...
[nodemon] v1.0.15
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node server.js`
Failed to load c++ bson extension, using pure JS version
Failed to load c++ bson extension, using pure JS version
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
Express app started on port 3000

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: failed to connect to [localhost:27017]
    at null.<anonymous> (/home/max/dev/jrcryer-MEAN/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:553:74)
    at EventEmitter.emit (events.js:106:17)
    at null.<anonymous> (/home/max/dev/jrcryer-MEAN/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:140:15)
    at EventEmitter.emit (events.js:98:17)
    at Socket.<anonymous> (/home/max/dev/jrcryer-MEAN/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:512:10)
    at Socket.EventEmitter.emit (events.js:95:17)
    at net.js:440:14
    at process._tickCallback (node.js:415:13)
[nodemon] app crashed - waiting for file changes before starting...

Express middleware error on grunt

I'm getting this error on grunt

Error: Most middleware (like session) is no longer bundled with Express and must be installed separately. Please
see https://github.com/senchalabs/connect#middleware.
at Function.Object.defineProperty.get (C:\meanproject\node_modules\express\lib\express.js:89:
3)
at module.exports (C:\meanproject\node_modules\connect-mongo\lib\connect-mongo.js:30:22)
at Object. (C:\meanproject\config\express.js:6:42)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (C:\meanproject\server.js:41:1)
[nodemon] app crashed - waiting for file changes before starting...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.