MongoDB C# docs
GitHub.NET DriverMongoDB docs
  • ⭐Introduction
  • πŸ“ŒGetting started
    • Environment setup
    • πŸƒβ€β™‚οΈ Quick start
      • MongoDB connection
      • Databases
      • Collections
      • Insert documents
      • Read documents
      • Update documents
  • πŸ“‘CRUD Basics
    • βž•Create
      • Id Member
      • Ordered insert
    • πŸ”ŽRead
      • Basics
      • Comparison Operators
      • Logical Operators
      • Element Operators
      • Array operators
      • Evaluation Operators
    • πŸ“Update
      • Operators
      • Replace
      • Arrays
    • ❌Delete
  • πŸ§ͺAggregation
    • Overview
    • βœ‚οΈProject
    • 🎯Match
    • πŸ“¦Group
    • 🚩Unwind
    • ⏩Pagination
    • πŸ“ˆBucket
    • ✨Operators
Powered by GitBook
On this page
  • MongoDB server installation
  • Clone the repository
  1. πŸ“ŒGetting started

Environment setup

Installation requirements & source code download

PreviousIntroductionNextπŸƒβ€β™‚οΈ Quick start

Last updated 5 years ago

MongoDB server installation

In case you want to run and debug the samples existing in these docs locally, your development machine should have at least the followings configured:

  • A MongoDB instance: If you haven't any instance installed on your machine, you can download the which is free. Depending on your computer's OS, click the respective link and follow the instructions.

  • .NET Core SDK: Download the latest .NET Core SDK from Microsoft's official .

Both MongoDB and .NET Core are open source projects which means you can run the samples either in a MAC, Linux or Windows machine

Clone the repository

You can download the source code for the docs by either selecting Clone or download in the repository's or by running the following git command

git clone https://github.com/chsakell/mongodb-csharp.git

After doing so, don't forget to set the connection string to point your MongoDB instance in the appsettings.json file.

{
  "ConnectionStrings": {
    "MongoDBConnection": "mongodb://localhost:27017"
}
πŸ‘
⬇️
Community Edition
page
page