Skip to content

For mongodb database

Alexey Gordeyev edited this page Feb 27, 2016 · 8 revisions

Back to Home

Database configuration

Steps

  • Add dependency to mongodb database driver module in app package.json, and install it.
  • Rewrite database configuration file

To configure trinte app for MongoDB database use adapter name mongodb.

Database Configuration file

|-- config
    |-- ...
    `-- database.js

Example

module.exports.production = {
    driver     : 'mongodb',
    host       : 'localhost',
    port       : '27017',
    username   : 'test',
    password   : 'test',
    database   : 'trinte-dev'
};
module.exports.development = {
...
};
module.exports.test = {
...
};

Full database params list here

Back to Home

Clone this wiki locally