Emberjs apps within Nodejs


#1

I’m attempting to put a few ember apps within a nodejs project as shown in the structure below. Is this possible? Is this the correct way to do it and is this the best way to do it?

nodejs  <---- Nodejs project
   bin
   bower_components
   ember_apps  <---- Directory to hold my ember apps
      cms  <---- first ember app
         app
         bower_components
         config
         dist
         node_modules
         public
         tests
         tmp
         vendor
   node_modules
   public
   routes
   views


#2

I’m not an expert, but I’ve always been leery about the idea of multiple apps within a single site / project. If you have a real reason to separate content (perhaps, like a CMS and consumption side of things) than my first instinct would be to create two entirely separate sites connected by an API (if even that). But even then, you could still build everything inside a single app.

I’d be interested to hear what the rest of the community (especially those more experienced) have to say about these sort of situations.

As well as doing it with node, have you looked at the Ember CLI? Its already pretty much the defacto way to develop ember apps with node.


#3

Thanks for the feedback.

I’m actually developing the ember portion with ember-cli.