SEE MORE ON MY YOUTUBE CHANNEL: https://www.youtube.com/@ugochukwuchigozirim2431
This is a simple project that showcases how to interact with MongoDB using Rust programming language. It demonstrates basic CRUD operations (Create, Read, Update, Delete) using the official MongoDB driver for Rust.
To run this project, make sure you have the following installed:
- Rust programming language (https://www.rust-lang.org/tools/install)
- MongoDB server (https://www.mongodb.com/try/download/community)
-
Clone the repository:
-
Navigate to the project directory:
-
Install dependencies:
-
Save environment variable of your atlas key
export MONGODB_URI="YOUR KEY"
- Run the example
cargo run
The example demonstrates the following operations:
- Inserting documents into a MongoDB collection
- Querying documents from a collection
- Updating documents in a collection
- Deleting documents from a collection
Feel free to explore the code and modify it to suit your needs. It provides a starting point for building Rust applications that interact with MongoDB.
- MongoDB Rust Driver Documentation: link
- Rust Programming Language: https://www.rust-lang.org
- MongoDB Official Website: https://www.mongodb.com
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.