How to run shell script file using nodejs?

You could use “child process” module of nodejs to execute any shell commands or scripts with in nodejs. Let me show you with an example, I am running a shell script(hi.sh) with in nodejs. hi.sh echo “Hi There!” node_program.js const { exec } = require(‘child_process’); var yourscript = exec(‘sh hi.sh’, (error, stdout, stderr) => { … Read more

MySQL and NoSQL: Help me to choose the right one

You should read the following and learn a little bit about the advantages of a well designed innodb table and how best to use clustered indexes – only available with innodb ! http://dev.mysql.com/doc/refman/5.0/en/innodb-index-types.html http://www.xaprb.com/blog/2006/07/04/how-to-exploit-mysql-index-optimizations/ then design your system something along the lines of the following simplified example: Example schema (simplified) The important features are that … Read more