> > Hello, > > Hi, > I would like my next web project to use Node.js and MongoDB. > > I've spent the last several weeks downloading, running, and playing around > with pretty much all of the popular frameworks. > > I think I finally figured out the direction I want to take but I'm having > a hard time getting off the ground. > > If that project is like web application but not a heavy loaded data service, then i can help a little.
> For the client I am going to purchase a theme from WrapBootstrap. > > For the server I just want a Rest API with authentication that the theme > can talk to. (If a Rest API isn't the way to go for a third party theme > then I am open to other ideas.) > > If that client (theme) has no clear data consumption interface (or contract with backend), then it is quite easy to use AJAX to communicate. I don't know if that can be called REST, but it is CRUD for sure. It has URL address and URI parameters as routing and app state/options part. Data part is payload with JSON (or plain text/form data depends on content type of request). > So what I am looking for is a starter framework on GitHub that... > > - Has best practices for architecture, layout, and authentication. > > I can not say "best", but i've seen many projects, examples and frameworks too. From web-app perspective i've chosen client MVC directory structure[0]. Backend is living in "/lib" with node.js' `require()` being main glue of its parts and `new Function()` being API runner (so to speak)[1]. [0] Editable Grid + Node.js, Part 1 http://docs.sencha.com/extjs/4.2.2/#!/guide/editable_grid [1] Example of manual routing of URL to the API end points or an app module: https://github.com/olecom/supro-demo/blob/master/app_modules/shoesupro/lib/logic.js > > - Uses Mongoose and has examples of some models with relationships. > > I've used simple mongodb-native drive so i don't restricted to any schema while developing. To have more or less good UI for data and thus help to visualize what is going on i recommend mongo-edit[3] which is on node.js and is good start for connecting all dots (db, node.js backend, UI with data). Data relations then is up to you to embed and/or normalize etc. [2] end point that handles logic relating to one business object: https://github.com/olecom/supro-demo/blob/master/app_modules/shoesupro/lib/logic_seasn.js > > > [3] https://github.com/louischatriot/mongo-edit > - Has examples of authentication with roles. > > In my platform there is optional app module that uses RBAC to authorize URL (static file of UI components and API). Configuration is done in both module itself (defaults) and config. There is no DB part for that yet (it is simple save/load of JSON anyway). [4] https://github.com/olecom/supro/wiki/RBAC:-permissions,-roles,-users [5] https://github.com/olecom/supro-demo/blob/master/app_modules/userman/lib/rbac.js > > - Does not have jade screens and is not built around a specific client > structure since I'll be using a WrapBootstrap theme. > > It is JSON-only back and forth. I've checkout out many already but I cannot find what I'm looking for. > > The main things are it just needs to serve as a back-end with > authentication for the theme and it needs to have examples. > > If someone could recommend something to me I be greatly thankful. > > I can propose just my own stuff... Thank you! > > Good luck. ________ -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/a07f6e3e-8fbf-408d-b44e-76f1d7a7ae8d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
