Effective setup for using express.js, backbone.js, connect-assets

I'm a little new to node.js and trying to configure an application using Backbone.js for a client application, but sitting on top of express.js and node.js, so I have server-side extensibility.

However, there are not many examples on the Internet of a clean installation / organization for sharing these technologies. How should this project be presented, and is it even an effective combination of technologies, which I think it is?

|____app.js |____assets | |____css | |____js | | |____models | | |____test.coffee | | |____views |____lib | |____setup.js |____package.json |____public | |____images | |____javascripts | |____stylesheets | | |____style.css | | |____style.less |____routes | |____index.js | |____user.js |____views | |____index.jade | |____layout.jade 

In addition, I hope that I can write all this application, Basic logic and everything, in coffeescript (using connect-assets) ...

+4
source share
1 answer

I also found that there are not many good examples of project templates.

express-coffee is a good one that I found that has some really useful defaults, including some of the things you are looking for.

  • Connect assets
  • Coffeescript is everything.
  • mocha universes are already configured.
  • Great cake default commands.

I started development which includes Bootstrap Twitter styles and setting up requireJS and Backbone on github, but if you're still new to node.js this can be a little intimidating.

0
source

Source: https://habr.com/ru/post/1433821/


All Articles