How to connect NodeJs with MongoDB on the Plesk server

Created:

2017-02-15 05:54:20 UTC

Modified:

2017-08-15 13:34:34 UTC

4

Was this article helpful?


Have more questions?

Submit a request

How to connect NodeJs with MongoDB on the Plesk server

Applicable to:

  • Plesk Onyx for Linux
  • Plesk Onyx for Windows

Question

How to connect NodeJs with MongoDB on the Plesk server?

Answer

In order to connect NodeJs to a MongoDB server, its necessary to install a database driver using the following command under the NodeJs application folder:

npm install mongodb

To get more information refer to the official MongoDB documentation at the Node.js Driver

Have more questions? Submit a request
Please sign in to leave a comment.