Skip to content

A Perigress output format in the style of MongoDB, using a similar syntax

Notifications You must be signed in to change notification settings

dbebawy-modus/mongonian

 
 

Repository files navigation

Mongonian

Mongonian is a Perigress output format for an API that closely matches mongo's format and output.

Usage

	const app = express();
	app.use(express.json({strict: false}));
	const api = new Perigress.API({
		subpath : 'verifier-subdirectory',
		dir: __dirname
	}, new Mongoish());
	api.ready.then(()=>{
		api.attach(app);
		// express is now serving a mock API using the Mongoish format
		// request `<root>/spec` for documentation
	}).catch((ex)=>{
		should.not.exist(ex);
	});;

Testing

	npm test

About

A Perigress output format in the style of MongoDB, using a similar syntax

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%