Grow your CSS skills. Land your dream job.

Sails.js, KrakenJS or write own MVC for Express?

  • # January 1, 2014 at 9:40 am

    Hey, I’m working on a website… a database where users can search the database based on filters, comment on items, tag other items in comments and add items to lists. (okay a bit vague, but what the hell :P )

    I want to use Node since I love JS and am tired of PHP.

    Started using Express but I miss some features like:

    • Controllers with actions
    • Controller/action based routes
    • Controller/action based views
    • Layout templates (is that possible with say, Hogan.js?)

    Should I implement my own or use a (Express based) MVC framework like Sails.js or KrakenJS? If so, which one?

    Thanks! :)

    # January 3, 2014 at 4:25 pm

    Node/Express isn’t something most of the users here are familiar with. I think you would have better luck asking this in the Express forum or on StackOverflow

    # January 3, 2014 at 7:56 pm

    Noticed :) Thanks for your reply though. I went with just Express since I figured I want to get familiar with the basics before using frameworks.

    I have my routing and controllers set up like https://github.com/madhums/node-express-mongoose-demo now, but without Mongoose.

    # January 3, 2014 at 8:02 pm

    @CrocoDillon check out AngularJS, just attach clean api service via backend. I’m using it with Laravel (PHP) as backend.

    http://blog.mongodb.org/post/49262866911/the-mean-stack-mongodb-expressjs-angularjs-and

    # January 3, 2014 at 10:15 pm

    @Alen speaking of Angular, have you tried polymer? (I’m trying to find the opinion of someone who’s tried both. Sorry @CrocoDillon for the hijacking)

    # January 3, 2014 at 10:59 pm

    @traq, I’ve just started with the whole thing really so I’m focusing on AngularJS as of now, haven’t tried Polymer. What I like about AngularJS is two-way data binding right out of the box. Not sure if other frameworks offer that, but from what I’ve read so far not that many (but haven’t really compared, just kind of went with AngularJS) I picked up bunch of books about AngularJS from http://www.packtpub.com for $5 each, all very interesting… for someone not that experienced with JavaScript

    # January 4, 2014 at 12:49 am

    polymer has the same sort of binding. What attracts me to polymer over angular is that it seems to have more of a “web components” structure.

    # January 4, 2014 at 4:06 am

    @Alen, I like the idea of the “MEAN” stack, definitely want to try that out sometimes. But for this project I’m concerned about performance and don’t want to rely on JavaScript in the browser.

    @traq, no problem :) Polymer looks good too.

    # January 10, 2014 at 3:02 pm

    Just discovered this resource: http://www.youtube.com/watch?v=Afwrcm5rtmk

    Intro to MEAN stack.

    # January 11, 2014 at 5:54 pm

    Thanks, it’s pretty long so haven’t found time to watch yet but I sure will :)

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".