是否node.js的骨干,socketio和前preSS和咖啡脚本一起去吗? [英] Does node.js, backbone, socketio and express and coffee script all go together?

查看:118
本文介绍了是否node.js的骨干,socketio和前preSS和咖啡脚本一起去吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图得到一个什么样的最新和最伟大的概述,并很好奇,所有这些不同的技术如何结合在一起的。

I'm trying to get an overview of what's latest and greatest, and was curious how all these different technologies fit together.

是这样的:

是的NodeJS一个网络服务器,骨干是只是将运行的NodeJS框架?

Nodejs is a webserver, backbone is just a framework that will run on nodejs?

SocketIO是,与骨干工作的图书馆呢?

SocketIO is a library that works with backbone then?

和实际code可以coffescript,这在编译时,将是JavaScript的书写。

And the actual code can be written in coffescript, which when compiled, will be javascript.

有关前preSS什么呢?难道这被使用。

What about express then? Could this be used.

请指出,如果这些都是不一起工作的组件/框架等。

Please point out if these are components/frameworks that don't work together etc.

推荐答案

是的,CoffeeScript的将与Node.js的工作没有问题。事实上,如果你使用默认的咖啡可执行文件,它是Node.js的,你甚至都不需要编译到JavaScript才能运行。

Yes, CoffeeScript will work with Node.js without problem. In fact, if you you use the default coffee executable, it is Node.js and you don't even need to compile to JavaScript in order to run it.

至于主干,它实际上是一个客户端库。您还可以使用的CoffeeScript在这里,但你需要编译code到JavaScript的,因为浏览器只知道JS。在节点您通常不会运行Backbone.js的。

As for Backbone, it is really a client-side library. You can also use CoffeeScript here, but you need to compile the code to JavaScript since the browsers only know JS. You wouldn't typically run Backbone.js in Node.

至于实施例preSS,它是一个节点框架,因此预期在Node.js的服务器上运行。

As for Express, it is a Node framework, so it is expected to work on the server in Node.js.

因此​​,简言之:


  • 您会使用节点服务器端与SocketIO和Ex preSS

  • CoffeScript可以去客户端和服务器

  • 您将使用骨干在客户端上

  • 您可能会使用Backbone.sync机制,从骨干机型交谈SocketIO服务器

帮助吗?

这篇关于是否node.js的骨干,socketio和前preSS和咖啡脚本一起去吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆