web applications - How to start an Node.JS Web-App -
to start new project/webapp on node.js, need:
- folder structure;
- libraries (express, requirejs, mocha, bower, ...);
- software phases - build, compile, testing, ...;
- ...
which best stack large-scale projects on javascript/node.js?
thanks in advance help!
first thing's first, keep simple. every new tool add dependency, , potential stress point project. in mind, tools, methodologies, , best-practices server-side javascript development are:
folder structure doesn't really matter. makes sense you, , think make sense others if plan have collaborators. search github node.js projects , see how they're structured. found 1 example: https://github.com/thomasdavis/backbonetutorials/tree/gh-pages/examples/nodejs-mongodb-mongoose-restify
libraries libraries use going depend on type of project you're working on. rest api hit database? mongodb, redis, mysql, neo4j, ... ? you're going need interface that. express great framework. (i believe can start project even.)
technologies have considered coffee/clojure-script? step @ compile time can save lot of headaches later on. code more readable others. jslint great tool verify javascript code. also, have suggest using git version control. if aren't: learn it, master it, use it. http://www.git-legit.org/
methods software development strategy dependent on tools end using own personal choices regard how write software. suggest using jenkins continuously integrate code, , sort of test framework ensure write right.
Comments
Post a Comment