How to store Node.js deployment settings/configuration files?

Much later, I found a pretty good Node.js module for managing configuration: nconf. A simple example: It also supports storing settings in Redis, writing configuration files, and has a fairly solid API, and is also backed by one of the more well-respected Node.js shops, Nodejitsu, as part of the Flatiron framework initiative, so it should be fairly future-proof. Check out nconf … Read more

Apache and Node.js on the Same Server

Great question! There are many websites and free web apps implemented in PHP that run on Apache, lots of people use it so you can mash up something pretty easy and besides, its a no-brainer way of serving static content. Node is fast, powerful, elegant, and a sexy tool with the raw power of V8 … Read more

Advice on loopback.js vs express js

Planning to build an enterprise level application using node js. Have already worked on express js for a few projects. When researching for other possible frameworks, came across loopback js. Loopback.js, a new framework(3-4 years) built over express framework. The initial configuration and set up of the application was so quick, as i able to … Read more

npm WARN package.json: No repository field

It’s just a check as of NPM v1.2.20, they report this as a warning. However, don’t worry, there are sooooooo many packages which still don’t have the repository field in their package.json. The field is used for informational purposes. In the case you’re a package author, put the repository in your package.json, like this: Read more about the repository field, and see the logged bug for further … Read more

path.join vs path.resolve with __dirname

Yes there is a difference between the functions but the way you are using them in this case will result in the same outcome. path.join returns a normalized path by merging two paths together. It can return an absolute path, but it doesn’t necessarily always do so. For instance: resolves to app/libs/ssl path.resolve, on the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)