# MongleDB

安裝 Server 端 app

{% embed url="<https://play.google.com/store/apps/details?id=io.tempage.dorymongo&hl=zh_TW>" %}

安裝Client端

{% embed url="<https://play.google.com/store/apps/details?id=com.SemdelionTeam.MongoViewer&hl=zh_TW>" %}

**Usage:**\
1: install Dory mongoDB Server\
2: run your Server\
3: use termux node.js\
4: run this code in your js file<br>

**Code:**

```javascript
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test', { useMongoClient: true });
mongoose.Promise = global.Promise;

var Cat = mongoose.model('Cat', { name: String });

var kitty = new Cat({ name: 'Zildjian' });
kitty.save(function (err) {
  if (err) {
    console.log(err);
  } else {
    console.log('meow');
  }
});
```


---

# 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://kawsing.gitbook.io/opensystem/andoid-shou-ji/termux/mongledb.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.
