Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.

ereslibre/culturify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Considering your ddbb.json configuration file is something like this:

{
  "public" : {
    "host"     : "localhost",
    "port"     : 27017,
    "database" : "culture",
    "readonly" : {
      "username" : "culture",
      "password" : "culture"
    },
    "full" : {
      "username" : "privateuser1",
      "password" : "secret1"
    }
  },
  "private" : {
    "host"     : "localhost",
    "port"     : 27017,
    "database" : "private",
    "username" : "privateuser2",
    "password" : "secret2"
  }
}

You should perform this commands in order to create users with the correct
privileges over the MongoDB database:

> mongo

> use culture
> db.addUser("culture", "culture", true)
> db.addUser("privateuser1", "secret1")
> use private
> db.addUser("privateuser2", "secret2")

About

Culturify people !

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages