Sandbox env for javascript client side library devlopment with node.js -
I am developing a JavaScript library with the node.js for the client side I, as my client side, Include in the html page and I would like to check changes when developing lib. I have noticed that some libraries include this setup suit for my establishment. My question here is how to develop these examples in the node.js environment?
-
Should it be by creating a server.js (node on the server HTML page. Js app)? If yes, then I should include the same (server.js) in the Gitub project, as I have seen that no such file is included in it. This standard should be the way the developer is doing.
-
Should I create a separate sandbox or application (for the service of HTML, CSS and JS files) including my Library JS file?
NodesJScript executes javascript on a web page without connecting to the server is about to. In summary: with files and network access, but without browser.
If you want to create a JS library to run inside a web page, then you do not need nodes.
P> You can use it to host a small HTTP server and your static files, but you can do it in any langage you want. In fact, in the case of Hammer, example files can be run locally by the browser ... you do not even need a stable web server.
Comments
Post a Comment