+ 3

Can node.js be used for working with database? like CRUD opertaion.

4th Sep 2017, 11:06 AM
Virendra
Virendra - avatar
4 Answers
+ 5
MongDb is NoSql, it's easy to manage and has higher level of flexibility compare to Sql, and it's easier in term of scalability from small to huge. Sql like Mysql needs detailed database model, once the model is fixed, it's hard to alter, whereas NoSql like MongDb can be created quickly without detail database model, and it can be changed or add extra data easily. NoSql is using Json formatted data, it's easier to work with NodeJs since they share the same language Javascript. If you good at Javascript and your web server supports NodeJs and MongoDb, you should learn and use NodeJs in your new projects, once you familiar with NodeJs and MongDb, you would not like to go back to PHP and Mysql again.
4th Sep 2017, 1:32 PM
CalviŐ˛
CalviŐ˛ - avatar
+ 3
can it be used with mysql, sql server and oracle
4th Sep 2017, 12:20 PM
Virendra
Virendra - avatar
+ 2
Yes, it can. It normally use it with Nosql like MongoDB. You can use Express.js and Mongoose ODM to create CRUD operation with MongoDB. Check out http://mongoosejs.com/
4th Sep 2017, 12:16 PM
CalviŐ˛
CalviŐ˛ - avatar
+ 2
Yes, it's possible
4th Sep 2017, 12:20 PM
CalviŐ˛
CalviŐ˛ - avatar