What is node.js and API for API?

I have some experience with JavaScript but am not involved with any project management and JavaScript tools. I'm looking at using node and AMD but not really sure what they are used for and I'm having trouble handling the documentation.

Here are some of the specific points I'm stuck on:

Node

  • My impression is that it is for server side JavaScript. Can it build builds for client projects as well?
  • if it can build assemblies, can it build projects (+ dependencies) into one file for client side deployment?
  • can its build process integrate tools like jslint and grunt?

AMD

  • The problem is that it seems to work well with other tools ? (not trying to hack the dirt here, just don't understand the context of this problem)
  • where does AMD work - in a web browser? If so, does that mean that I need another tool to work with actually getting and managing third party libraries, running jslint, running tests, and building the project?
+3


source to share


1 answer


These projects are not related.

node.js is a JavaScript interpreter just like a web browser. It is server-side technology and cannot run on the client. Specifically, it is a set of library wrappers that add IO support, to a file or network, so that you can read from disk or respond to TCP requests (and thus TCP / IP aka HTTP (S) or FTP). Otherwise, it's just javascript, as you would write in a browser. You can use it to run a script from the command line or to create a web server.



It can be used to "build" projects from the command line, as it can be used as a scripting language in a shell environment (it even responds to routing #!).

AMD is a dependency management tool for JavaScript projects. You can use its load dependencies dynamically and even asynchronously (hence the name). AMD will work in the browser and in node.js (but node.js already includes the technology to load JavaScript dynamically, so it won't be very useful).

+4


source







All Articles