Database - richardschneider/yappy GitHub Wiki
MongoDB
Created an account on mongolab with the name makaretu
and the sandbox database named ecom
. Added a user with the name demo
; its password is the same as the name.
Verify access
Install mongo; then try
>mongo ds051838.mongolab.com:51838/ecom -u demo -p XXXX
MongoDB shell version: 3.0.7
connecting to: ds051838.mongolab.com:51838/ecom
rs-ds051838:PRIMARY> db.runCommand({ping:1});
{ "ok" : 1 }
Local database
Follow these instructions to setup mongo database server.
Server configuration
The API server uses a configuration file that specifies which database(s) to use. The config package is used so that different environments (development, CI, production, ...) can use different one.