Skip to content

Commit

Permalink
Include mongo configuration in Installation.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
MIGUELez11 authored Jul 26, 2023
1 parent c4282c1 commit 15bfcdf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/getting-started/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ my-leemons

## 4. Database connection configuration

Currently, Leemons needs a SQL and a Mongo connection at the same time.
You can set the configuration of the database connection by modifying the file:

```js title="my-leemons/examples/demo/config/database.js"
Expand All @@ -216,6 +217,22 @@ module.exports = {
},
},
},
mongo: {
connector: 'mongoose',
settings: {
database: 'leemons',
authDatabase: 'admin',
username: 'leemons',
password: 'leemons',
port: 27017,
host: 'localhost',
srv: false,
pool: {
min: 5,
max: 1000
}
}
}
defaultConnection: 'mysql',
};
```
Expand Down

0 comments on commit 15bfcdf

Please sign in to comment.