michaelkrone / generator-material-app Goto Github PK
View Code? Open in Web Editor NEWYet another yeoman generator for scaffolding a simple Node.js/Express/MongoDB/Angular.js app using some material design elements.
License: MIT License
Yet another yeoman generator for scaffolding a simple Node.js/Express/MongoDB/Angular.js app using some material design elements.
License: MIT License
Do you have time to do this?
Maybe our group can join you maintaining this repo.
Hi !
I just created an instance with the generator, but it seems that there is a problem with animate.js. The browser reports:
TypeError: Cannot read property '' of undefined
at lookup (angular-animate.js:617)
at animationRunner (angular-animate.js:681)
at performAnimation (angular-animate.js:1284)
at angular-animate.js:959
at angular-animate.js:539
at Scope.$get.Scope.$digest (angular.js:15352)
at Scope.$get.Scope.$apply (angular.js:15570)
at bootstrapApply (angular.js:1582)
at Object.invoke (angular.js:4379)
at doBootstrap (angular.js:1580)
I'm going to try with a different version of angular-animate and or a different angular version.
Everything else seems to work nicely
thanks and I hope this helps ๐
I've generated an server api for one of my entities abut when I run the unit test I get the following error on a PUT and DELETE:
Cannot read property 'paramName' of undefined
app/server/lib/controllers/param.controller.js:115:12
Hi, I followed the steps to generate an app, but when I executed the gulp build command that error is showed:
gulp build
[13:52:42] Using gulpfile ~/Dev/yeoman-test/gulpfile.js
[13:52:42] Starting 'sass'...
events.js:85
throw er; // Unhandled 'error' event
^
Error: spawn sass ENOENT
at exports._errnoException (util.js:746:11)
at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
at child_process.js:1144:20
at process._tickDomainCallback (node.js:381:11)
Can you help me?
because server only serve this in development.
var socket = socketio(server, {
serveClient: (config.env !== 'production'),
path: '/socket.io-client'
});
I want to change this serveClient flag to always true. Is there a better way to fix this?
I got this error :
Database Error: { [MongoError: connect ECONNREFUSED] name: 'MongoError', message: 'connect ECONNREFUSED' }
What is the meaning of this
Since the reset to 0.1.5, the master branch lacks all feature PR's done by @stupidisum. At the moment there is no branch reflecting the npm published version. Develop should be updated accordingly to merge it into master.
Hello,
I got the following error when trying to build on Linux:
gulp build
[16:07:04] Using gulpfile ~/Development/material-app-test/gulpfile.js
[16:07:04] Starting 'sass'...
events.js:85
throw er; // Unhandled 'error' event
^
Error: spawn sass ENOENT
at exports._errnoException (util.js:746:11)
at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
at child_process.js:1144:20
at process._tickDomainCallback (node.js:381:11)
Any ideas?
How can I run the application? Using npm start I get
0 info it worked if it ends with ok
1 verbose cli [ 'c:\Program Files (x86)\nodejs\node.exe',
1 verbose cli 'c:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose stack Error: ENOENT, open 'c:\Test\package.json'
4 verbose stack at Error (native)
5 verbose cwd c:\Test
6 error Windows_NT 6.3.9600
7 error argv "c:\Program Files (x86)\nodejs\node.exe" "c:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "start"
8 error node v0.12.7
9 error npm v2.11.3
10 error path c:\Test\package.json
11 error code ENOENT
12 error errno -4058
13 error enoent ENOENT, open 'c:\Test\package.json'
13 error enoent This is most likely not a problem with npm itself
13 error enoent and is related to npm not being able to find a file.
14 verbose exit [ -4058, true ]
This is awesome generator, and I am feeling great by coming to this repo. Couple of thing I am still not able to identify.
I am trying to evaluate this generator and dev mode it works fine but still not sure that code is ready for production server or not.
Even there is not any easy command to run code in production mode?
gulp watch
shows mongoose connection error.
NODE_ENV=production npm run seed
how this can be run on windows system?
How to deploy on azure/heroku?
such type of things are missing in ReadMe.
When I run
yo material-app:api multiplayer
I have the next error:
TypeError: Cannot read property 'auth' of undefined
at Object.prompts.when (/usr/local/lib/node_modules/generator-material-app/generators/api/index.js:44:39)
at module.exports (/usr/local/lib/node_modules/yo/node_modules/inquirer/node_modules/run-async/index.js:15:21)
at AnonymousObservable.__subscribe (/usr/local/lib/node_modules/yo/node_modules/inquirer/lib/ui/prompt.js:121:7)
at AnonymousObservable.tryCatcher (/usr/local/lib/node_modules/yo/node_modules/inquirer/node_modules/rx-lite/rx.lite.js:63:31)
at setDisposable (/usr/local/lib/node_modules/yo/node_modules/inquirer/node_modules/rx-lite/rx.lite.js:5741:44)
at AnonymousObservable.innerSubscribe as _subscribe
at AnonymousObservable.Rx.Observable.observableProto.subscribe.observableProto.forEach (/usr/local/lib/node_modules/yo/node_modules/inquirer/node_modules/rx-lite/rx.lite.js:1604:19)
at AnonymousObservable.__subscribe (/usr/local/lib/node_modules/yo/node_modules/inquirer/node_modules/rx-lite/rx.lite.js:2112:21)
at AnonymousObservable.tryCatcher (/usr/local/lib/node_modules/yo/node_modules/inquirer/node_modules/rx-lite/rx.lite.js:63:31)
at setDisposable (/usr/local/lib/node_modules/yo/node_modules/inquirer/node_modules/rx-lite/rx.lite.js:5741:44)
because bashPath should be client
but not app
because .gitignore contains dist
and lodash main file is in dist
I am sorry but I have the same problem. I've installed mongo and run it. I put db in some folder which is outside the app folder. But in the index.js file I cannot find setting for config.mongo.uri and config.mongo.options. Am I missing something?
Thanks
Because not everyone wants to use this
104201 verbose stack Error: [email protected] postinstall: node ./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update
104201 verbose stack Exit status 1
104201 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:232:16)
104201 verbose stack at emitTwo (events.js:87:13)
104201 verbose stack at EventEmitter.emit (events.js:172:7)
104201 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:24:14)
104201 verbose stack at emitTwo (events.js:87:13)
104201 verbose stack at ChildProcess.emit (events.js:172:7)
104201 verbose stack at maybeClose (internal/child_process.js:818:16)
104201 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
104202 verbose pkgid [email protected]
104203 verbose cwd /home/drew/testing/app
104204 error Linux 3.19.0-28-generic
104205 error argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
104206 error node v4.2.1
104207 error npm v3.3.10
104208 error code ELIFECYCLE
104209 error [email protected] postinstall: node ./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update
104209 error Exit status 1
104210 error Failed at the [email protected] postinstall script 'node ./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update'.
104210 error Make sure you have the latest version of node.js and npm installed.
104210 error If you do, this is most likely a problem with the app package,
104210 error not with npm itself.
104210 error Tell the author that this fails on your system:
104210 error node ./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update
104210 error You can get their info via:
104210 error npm owner ls app
104210 error There is likely additional logging output above.
104211 verbose exit [ 1, true ]
/home/drew/testing/app/node_modules/main-bower-files/lib/index.js:81
throw error;
^
Error: Bower components directory does not exist at /home/drew/testing/app/client/bower_components
at Error (native)
at module.exports (/home/drew/testing/app/node_modules/main-bower-files/lib/index.js:76:17)
at Object. (/home/drew/testing/app/gulp/config.js:11:14)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/home/drew/testing/app/gulpfile.js:11:12)
drew@drew-ubuntu:~/testing/app$
Hey, can you add a Licence to your project?
Running on MacOsx inside bitnami stack.
Node version :0.12.4 npm version : 3.x
Noticable error during generation ๐
npm start
[email protected] start /Volumes/work/mean304/apache2/htdocs/yoMaterial
node bin/server.js
yoMaterial started server on ip 0.0.0.0 on port 9001, in development mode
Database connection open
Populating test and development data ...
/Volumes/work/mean304/apache2/htdocs/yoMaterial/server/api/user/user.model.js:265
throw err;
^
MongoError: not authorized for query on yoMaterial-dev.users
at Function.MongoError.create (/Volumes/work/mean304/apache2/htdocs/yoMaterial/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:31:11)
at queryCallback (/Volumes/work/mean304/apache2/htdocs/yoMaterial/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:170:34)
at Callbacks.emit (/Volumes/work/mean304/apache2/htdocs/yoMaterial/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:94:3)
at null.messageHandler (/Volumes/work/mean304/apache2/htdocs/yoMaterial/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:235:23)
at Socket. (/Volumes/work/mean304/apache2/htdocs/yoMaterial/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:259:22)
at Socket.emit (events.js:107:17)
at readableAddChunk (_stream_readable.js:163:16)
at Socket.Readable.push (_stream_readable.js:126:10)
at TCP.onread (net.js:538:20)
npm ERR! Darwin 14.4.0
npm ERR! argv "/Volumes/work/mean304/nodejs/bin/.node.bin" "/Volumes/work/mean304/nodejs/bin/npm" "start"
npm ERR! node v0.12.4
npm ERR! npm v2.13.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node bin/server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node bin/server.js'.
npm ERR! This is most likely a problem with the yo-material package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node bin/server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls yo-material
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Volumes/work/mean304/apache2/htdocs/yoMaterial/npm-debug.log
bash-3.2$
93844 error Darwin 13.4.0
93845 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
93846 error node v5.0.0
93847 error npm v3.3.10
93848 error code ELIFECYCLE
93849 error [email protected] postinstall: node ./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update
93849 error Exit status 1
93850 error Failed at the [email protected] postinstall script 'node ./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update'.
93850 error Make sure you have the latest version of node.js and npm installed.
93850 error If you do, this is most likely a problem with the app package,
93850 error not with npm itself.
93850 error Tell the author that this fails on your system:
93850 error node ./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update
93850 error You can get their info via:
93850 error npm owner ls app
93850 error There is likely additional logging output above.
93851 verbose exit [ 1, true ]
[09:18:19] Using gulpfile ~/Desenvolvimento/Github/material/gulpfile.js
[09:18:19] Task 'development' is not in your gulpfile
[09:18:19] Please check the documentation for proper gulpfile formatting
how can we add gulp watch and livereload so do not need to run npm start after any file change?
Hi,
when a run the npm start in the browser I have this js error:
TypeError: cssClasses.split is not a function
at jqLiteAddClass (angular.js:2897)
at Function.$get.extend.addClass (angular.js:3538)
at angular-animate.js:119
at forEach (angular.js:336)
at $$addClass (angular-animate.js:118)
at options (angular-animate.js:132)
at close (angular-animate.js:2328)
at queueAnimation (angular-animate.js:2156)
at Object.$$AnimateQueueProvider.$get.push (angular-animate.js:2053)
at Object.$AnimateProvider.$get.leave (angular.js:5224)
And the css on screen not work.
can you help me?
got a chrome warning:
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343.
I think most of the code is getting fixed on daily basis so how can I get that latest fixes in my current code, and once you release that how can I upgrade my code to that?
I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself.
|
> [email protected] postinstall C:\Projects\material-app
> ./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update
'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script './node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update'.
npm ERR! This is most likely a problem with the material-app package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system: npm ERR! ./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update
npm ERR! You can get their info via:
npm ERR! npm owner ls material-app
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Projects\material-app\npm-debug.log
Already created a PR for this #18
[Error: unable to parse <anonymous>~SensorEditController~remove: Expected "!", "$", "(", "*", "...", "?", "Function", "\\", "_", "break", "case", "catch", "class", "const", "continue", "debugger", "default", "delete", "do", "else", "enum", "export", "extends", "false", "finally", "for", "function", "if", "implements", "import", "in", "instanceof", "interface", "let", "new", "null", "package", "private", "protected", "public", "return", "static", "super", "switch", "this", "throw", "true", "try", "typeof", "undefined", "var", "void", "while", "with", "yield", "{", Unicode letter number, Unicode lowercase letter, Unicode modifier letter, Unicode other letter, Unicode titlecase letter or Unicode uppercase letter but "<" found.]
In the case of responding "n" to socket.io , app.js will still have code loading socket.io config and module and it won't work obviously since they are missing.
I would like to skip support legacy node versions. Support for a current LTS Version should be sufficient.
This would enable us to use ES2015 features.
Hello Michael,
I tried running the 'yo material-app' twice and have been stuck in [email protected] install...
Please advice.
Thank you!
hi, i am exploring the generator and could not fully experiment the api. i have just been able to authenticate users but not have a clear understanding of all the possible /api calls.
Hi!
I get the following error :
[12:26:21] Using gulpfile ~/Developer/nodejs/yogenerators/gmaterialapp/gulpfile.js
[12:26:21] Starting 'sass'...
events.js:141
throw er; // Unhandled 'error' event
^
Error: spawn sass ENOENT
at exports._errnoException (util.js:849:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at doNTCallback2 (node.js:430:9)
at process._tickDomainCallback (node.js:385:17)
versions:
node v4.1.2
npm v2.14.4
After
yo generator-material-app
:
Make sure you are in the directory you want to scaffold into.
This generator can also be run with: yo material-appConfiguration
? Shall I scaffold out a JWT authentication (with users and stuff)? Yes
? Would you like to use socket.io? Yes
Error:
npm WARN Failed to parse json
npm WARN Unexpected token ',' at 28:30
npm WARN "passport-local": "~0.1.6",,
npm WARN ^
npm WARN File: /home/chihray/PROjects/generator-material-app/package.json
npm WARN generator-material-app No description
npm WARN generator-material-app No repository field.
npm WARN generator-material-app No README data
npm WARN generator-material-app No license field.
I remove ,
from package.json
and enter this command: bower install & npm install
:
sh: 1: ./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager: not found
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm ERR! Linux 4.4.0-22-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] postinstall:./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script './node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the generator-material-app package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs generator-material-app
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls generator-material-app
npm ERR! There is likely additional logging output above.
This is because location webdriver-manager is not correct:
find node_modules/ -name 'webdriver-manager'
node_modules/.bin/webdriver-manager
node_modules/protractor/bin/webdriver-manager
Fix it, please =)
I just generated a material-app following the guide in the README.
I managed to start the server but then i get an error in the client.
Uncaught ReferenceError: module is not defined
(anonymous function) @ index.js:1
Uncaught SyntaxError: Unexpected token e
fromJson @ angular.js:1272
Any Idea what is going wrong?
julauddeMacBook-Pro:app julaud$ npm start
[email protected] start /Users/www/npm/app
node bin/server.js
events.js:141
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE 0.0.0.0:9001
at Object.exports._errnoException (util.js:874:11)
at exports._exceptionWithHostPort (util.js:897:20)
at Server._listen2 (net.js:1234:14)
at listen (net.js:1270:10)
at net.js:1379:9
at doNTCallback3 (node.js:450:9)
at process._tickDomainCallback (node.js:397:17)
at Function.Module.runMain (module.js:469:11)
at startup (node.js:134:18)
at node.js:961:3
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v4.2.1
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node bin/server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node bin/server.js'.
npm ERR! This is most likely a problem with the app package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node bin/server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls app
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/www/npm/app/npm-debug.log
julauddeMacBook-Pro:app julaud$
Hello can you add some configurations so we can push the app to the openshift to work? And please add a file that we can define the env variables there. Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.