# Environment setup

## 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 [Community Edition](https://docs.mongodb.com/manual/administration/install-community/) 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 [page](https://dotnet.microsoft.com/download).

{% hint style="success" %}
Both MongoDB and .NET Core are open source projects which means you can run the samples either in a MAC, Linux or Windows machine :clap:&#x20;
{% endhint %}

## :arrow\_down: Clone the repository

You can download the source code for the docs by either selecting ***Clone or download*** in the repository's [page](https://github.com/chsakell/mongodb-csharp) 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.

```javascript
{
  "ConnectionStrings": {
    "MongoDBConnection": "mongodb://localhost:27017"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chsakell.gitbook.io/mongodb-csharp-docs/getting-started/environment-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
