hello-world-mongodb-dotnet

Hello World MongoDB (.NET)

πŸ“š A repository to learn MongoDB with .NET (C#)

wakatime Maintainability Test Coverage CodeFactor GitHub license GitHub last commit Codacy Badge


About

This repository is a starting point for learning how to integrate MongoDB, a popular NoSQL database, with .NET (C#). It demonstrates how to connect to a MongoDB instance, perform CRUD operations, and use advanced MongoDB features within a .NET application.


Features


Prerequisites

To get started, make sure you have:

  1. MongoDB Instance: Install MongoDB locally or use a cloud provider like MongoDB Atlas.
  2. .NET SDK: Install the latest .NET SDK from dotnet.microsoft.com.
  3. MongoDB Driver for .NET: The required driver is included in the project dependencies.

Getting Started

  1. Clone this repository:
    git clone https://github.com/GuilhermeStracini/hello-world-mongodb-dotnet.git
    cd hello-world-mongodb-dotnet
    
  2. Install dependencies:
    dotnet restore
    
  3. Set up your MongoDB connection string:
    • Rename appsettings.example.json to appsettings.json.
    • Add your MongoDB connection details.
  4. Run the application:
    dotnet run
    
  5. Follow the console instructions to explore MongoDB operations.


License

This repository is licensed under the MIT License.