0.1.5 • Published 10 years ago

dummydata v0.1.5

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

dummydata npm

A simple module for mongoDb to allow dummy data setup and teardown

Installation

npm install dummydata --save

Usage

var Dummy = require('dummydata');

var config_vars = JSON.stringify({
	"connectionUrl": "mongodb://127.0.0.1:27017/",
	"databaseName": 'test_data',
	"datadir": "test_data/"
});

var dummy = new Dummy(config_vars);
// setup dummy database 
dummy.setup(function(err, dummydb){
	if (err) { return console.error(err); }
    // ...
    // your code
    // ...
    dummy.destroy(dummydb, function(err){
			if (err) { return console.error(err); }
		});	
});

Tests

npm test

License

Copyright (c) 2015 Gaurav Gajjar
Licensed under the MIT license.

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago