Having trouble getting started with Node.js

124 views
Skip to first unread message

vbm...@gmail.com

unread,
Sep 26, 2014, 1:47:04 PM9/26/14
to nod...@googlegroups.com
Hello,

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.

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.)

So what I am looking for is a starter framework on GitHub that...
  • Has best practices for architecture, layout, and authentication.
  • Uses Mongoose and has examples of some models with relationships.
  • Has examples of authentication with roles.
  • Does not have jade screens and is not built around a specific client structure since I'll be using a WrapBootstrap theme.
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.

Thank you!


Sam Roberts

unread,
Sep 26, 2014, 9:02:05 PM9/26/14
to nod...@googlegroups.com
There's lots of frameworks, but http://loopback.io/ supports most of
what you want out of the box, it looks like a good fit for you.

You can ask more about it at https://groups.google.com/forum/#!forum/loopbackjs

Sam

Oleg Verych

unread,
Oct 1, 2014, 7:23:24 AM10/1/14
to nod...@googlegroups.com
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].

[1] Example of manual routing of URL to the API end points or an app module:
  • 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:

    • 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).

     
    • 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.
    ________

    Reply all
    Reply to author
    Forward
    0 new messages