1.1.0 • Published 9 years ago
@turbasen/db-mongo v1.1.0
@turbasen/db-mongo
Internal mongoDB wrapper for Nasjonal Turbase API.
Getting started
Download Docker for Mac or Windows.
Run in this directory:
$ docker-compose upDocker is now watching for changes and will run the test suite automatically.
Usage
Connects automatically to mongoDB using the following configurations:
MONGO_URIMONGO_PORT_27017_TCP_ADDRandMONGO_PORT_27017_TCP_PORT- Defaults to
mongoand27017
const mongo = require('mongo');
mongo.on('ready', () => {
console.log('mongoDB is ready!');
});