Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Node example #1

Merged
merged 11 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
assignees: [b1ron]
open-pull-requests-limit: 5
schedule:
interval: "weekly"
day: "tuesday"
time: "01:32"
26 changes: 6 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
# Quick Start: Node.js and MongoDB

This repository will walk you through the process of quickly getting started using Node.js and MongoDB together.
This is a fork of https://github.com/FerretDB/nodejs-example, simplified to run with FerretDB.

This branch uses MongoDB 4.4, MongoDB Node.js Driver 3.6.4, and Node.js 14.15.4. To see an earlier version that uses MongoDB 4.0, MongoDB Node.js Driver 3.3.2, and Node.js 10.16.3, visit the [3.3.2 branch](https://github.com/mongodb-developer/nodejs-quickstart/tree/3.3.2).
### Execution Steps

## Topics

* How to get connected to your database: [blog post](https://developer.mongodb.com/quickstart/node-connect-mongodb/) | [code example](connection.js)
* Creating documents: [blog post](https://developer.mongodb.com/quickstart/node-crud-tutorial/) | [code example](create.js)
* Reading documents: [blog post](https://developer.mongodb.com/quickstart/node-crud-tutorial/) | [code example](read.js)
* Updating documents: [blog post](https://developer.mongodb.com/quickstart/node-crud-tutorial/) | [code example](update.js)
* Deleting documents: [blog post](https://developer.mongodb.com/quickstart/node-crud-tutorial/) | [code example](delete.js)
* The aggregation framework: [blog post](https://developer.mongodb.com/quickstart/node-aggregation-framework/) | [code example](aggregation.js)
* Transactions: [blog post](https://developer.mongodb.com/quickstart/node-transactions/) | [code example](transaction.js)
* Change streams: [blog post](https://developer.mongodb.com/quickstart/nodejs-change-streams-triggers/) | [code example](changeStreams.js)

## Related Videos

[How to Perform the CRUD Operations Using MongoDB & Node.js](https://youtu.be/ayNI9Q84v8g)

## Questions?

Questions about this repo or how to use MongoDB and Node.js together? Ask them in the [MongoDB Community](https://community.mongodb.com).
1. `npm install`
2. `node index.js --uri='mongodb://localhost:27017/'`
3. To run with strict Stable API: `node index.js --uri='mongodb://localhost:27017/' --strict`
4. To run with PLAIN authentication pass PLAIN to the `authMechanism` URI option: `node index.js --uri='mongodb://localhost:27017/?authMechanism=PLAIN'`
78 changes: 0 additions & 78 deletions aggregation.js

This file was deleted.

156 changes: 0 additions & 156 deletions changeStreams.js

This file was deleted.

Loading