# MongoDB Compass Install

## Prerequisites

Please read and execute the steps laid out in the "Setting up your database" portion of the  [Basic Deployment](https://qmethod.gitbook.io/project/~/edit/drafts/-LMVn6cr2eZXyAcFrh07/installation/basic-deploy)  guide. You should also have the MongoDB Compass application installed onto your local machine. Please follow the following guides on how to do so:

[Signup for MongoDB Atlas](https://www.mongodb.com/cloud/atlas)

[Download and install MongoDB Compass](https://www.mongodb.com/download-center#compass)

First, we want to setup our MongoDB Compass application on our local machine, which will allow us to monitor, export and import raw database data. If you have not already installed Compass, please do so.

![Select "Connect to Compass"](https://i.imgur.com/YISX3sN.png)

![Copy to Clipboard](https://i.imgur.com/mKFm80h.png)

Copy the string that is created and open mongoDB Compass application on your local machine. You will be prompted and then you will see the connect to server form. Input the password you saved from earlier when creating the admin database user and connect.

![Open Compass and Input Authentication Details](https://i.imgur.com/kVaydQa.png)

From here you can view all items and documents in their raw text form, and export and import databases without limitations. Be however mindful of inadvertently corrupting valid data, and try to avoid modifying data individually without reason.

You may also choose to share this database with others through Mongo Atlas's browser interface (not through Compass) and add new users with read-only access.

## Exporting Raw JSON data from Database

Compass allows you to export and import raw database information as a json. This may be useful to store data on your local machine instead of a remote instance.

![Exporting survey data as JSON](https://i.imgur.com/f2fdLLi.png)


---

# 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://qmethod.gitbook.io/project/installation/mongodb-compass-install.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.
