Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 3.22 KB

README.md

File metadata and controls

76 lines (51 loc) · 3.22 KB

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

  • MongoDB Integration: Learn how to interact with MongoDB from a .NET application.
  • CRUD Operations: Practice Create, Read, Update, and Delete functionalities.
  • Flexible Schema: Explore the flexibility of MongoDB's schema-less nature in .NET.

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.


Helpful Links


License

This repository is licensed under the MIT License.