ugochukwu-850 / RUST_MONGODB

Learn how to build a data-driven application using Rust and MongoDB in this concise tutorial. Follow step-by-step instructions to perform CRUD operations (Create, Read, Update, Delete) with MongoDB using Rust's official MongoDB driver.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust MongoDB :: Using Mongo DB in a RUST project

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.

Prerequisites

To run this project, make sure you have the following installed:

Getting Started

  1. Clone the repository:

  2. Navigate to the project directory:

  3. Install dependencies:

  4. Save environment variable of your atlas key

export MONGODB_URI="YOUR KEY"
  1. Run the example
cargo run

Usage

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.

Resources

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

Learn how to build a data-driven application using Rust and MongoDB in this concise tutorial. Follow step-by-step instructions to perform CRUD operations (Create, Read, Update, Delete) with MongoDB using Rust's official MongoDB driver.


Languages

Language:Rust 100.0%