/gotodo

Primary LanguageJavaScript

To Do Application

MongoDB

The database is Mongo. Create a local user that has readWrite access.

{
    user: 'test',
    pwd: passwordPrompt(),
    roles: [
        {
            role: 'readWrite',
            db: 'test'
        }
    ]
}

Go Server

The Go mid-tier needs to create a connection string in order to connect to the Mongo database. Set the appropriate environment variables on the mid-tier container.

MONGO_HOST=db
MONGO_USER=todo
MONGO_PASSWORD=xxxxxxxxx
MONGO_DATABASE=test