Giter Club home page Giter Club logo

generator-klei's People

Contributors

joakimbeng avatar luisrudge avatar mneme 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

generator-klei's Issues

Add LESS support

Make the generator ask if one wants Stylus, LESS or No preprocessor as a CSS Preprocessor

Great template

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!

Error - Failed to connect to [localhost:27017]

Hello! Simple stuff:

  • yo klei
  • What do you want to name your module? -MyApp
  • REST API (using express.js)
  • MongoDB (using Mongoose)
  • Client APP (using AngularJS)
  • Stylesheets (using Stylus)
  • Should a simple Todo list example be generated as well? -No
  • grunt serve

And this error happens:
image

Error on Windows7

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>

No TODO when no Stylus

Generator does not prompt for Todo sample when saying No to Stylus. Could you add support for LESS?

Can't run `grunt serve` after scaffolding

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)

Authentication with PassportJS?

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!

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.