Code samples for the MongoDB and npm article.
Update the .env
file to add your MongoDB Atlas connection string:
DB_URI=mongodb+srv://<username>:<password>@<clustername>.mongodb.net/
Execute the following commands in the root of the project:
npm install
node ./index.js
Use at your own risk; not a supported MongoDB product