Node.js applications is very easy stuff. In maven, there is
pom.xml. Related concept in
package.json. You can state your dependencies on
package.json. You can also do environmental setup on
package.json. For example, in dev environment you can say that
I want to run unit tests.
but in production;
I want to skip unit tests.
You have local repositories for maven under
.m2 folder. In Node.js, there is
node_modules folder under your Node.js project. You can see module folders with its name.
Let’s come to the
grunt part of this answer.
grunt task run functions in
If you want to look at a sample application, you can find an example blog application here. Check folder structure and
package.json for reference.
For deployment, I suggest you heroku deployment for startup applciations. You can find howto here. This is simple git based deployment.
On project running part, simply set your environment
node app.js. Here
app.js is in your project.
Here is relative concept for java and nodejs;
maven clean install=>
node_modules(Under project folder)
npm test(test section on
powermock, … => mocha, node-unit, …
Spring MVC=> Express.JS
Leave an answer