klei / generator-klei Goto Github PK
View Code? Open in Web Editor NEWA Yeoman generator for generating awesome module or app boilerplates! MEAN-stack (all parts optional) with Grunt and Bower sweetness..
License: MIT License
A Yeoman generator for generating awesome module or app boilerplates! MEAN-stack (all parts optional) with Grunt and Bower sweetness..
License: MIT License
$ grunt dist
Running "clean:all" (clean) task
Running "injector:vendors" (injector) task
Warning: Cannot read property 'main' of undefined Use --force to continue.
Aborted due to warnings.
Make the generator ask if one wants Stylus, LESS or No preprocessor as a CSS Preprocessor
I really like is template, especially the modular folder structure. Any chance you could add Heroku deployment task/scripts to the template? or give some directions. I tried to add the Heroku configuration, but it doesn't seem to work when I access the app hosted on heroku.
Thanks!
Can you add the jasmine test framework as well? :)
Nice project!
Hi, thanks for the promising project! I have an issue when launching command:
grunt serve
I got this warning that stops the script:
Warning: Cannot read property 'main' of undefined Use --force to continue.
and this is the complete output:
PS F:\www> grunt serve
Running "serve" task
Running "clean:dist" (clean) task
Cleaning .tmp...OK
Running "clean:temp" (clean) task
Running "html2js:app" (html2js) task
Successfully converted 1 html templates to js.
Running "injector:bower" (injector) task
Missing option template
, using dest
as template instead
Warning: Cannot read property 'main' of undefined Use --force to continue.
Aborted due to warnings.
PS F:\www>
Generator does not prompt for Todo sample when saying No to Stylus. Could you add support for LESS?
I created a new project with yo klei
and chose not to have Stylesheets, but I accepted the Todo app. Directly after I run grunt serve
which gives me this:
$ grunt serve
Running "serve" task
Running "clean:temp" (clean) task
Cleaning .tmp...OK
Running "html2js:app" (html2js) task
Successfully converted 1 html templates to js.
Running "jshint:app" (jshint) task
โ No problems
Running "injector:app" (injector) task
Missing option `template`, using `dest` as template instead
Injecting js files (8 files)
>> Nothing changed
Running "copy:index" (copy) task
Copied 1 files
Running "express:dev" (express) task
Starting background Express server
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
CONTROLLER-ACTION:ADD POST /api/todo
CONTROLLER-ACTION:ADD GET /api/todo/:id
CONTROLLER-ACTION:ADD PUT /api/todo/:id
Running "watch" task
Waiting...CONTROLLER-ACTION:ADD DELETE /api/todo/:id
CONTROLLER-ACTION:ADD GET /api/todo
DEVELOPMENT Server listening on port 1337
events.js:72
throw er; // Unhandled 'error' event
^
Error: failed to connect to [localhost:27017]
at null.<anonymous> (/Users/john-philipjohansson/Documents/GitHub/whatthee5/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/whatthee5/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/whatthee5/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)
First of all, thanks for this template; I've been using it for a couple of projects and it's really nice.
I was wondering how you would go about adding authentication, probably using Passport since it simplifies the process a lot? The tricky part seems to be maintaining sessions on the client and using that session securely to restrict certain api calls to authenticated users / return specific results for a user.
Any suggestions for getting this working or plans to integrate this?
Thanks!
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.