cluedin-widget
Version:
This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.
12 lines (10 loc) • 354 B
JavaScript
var entities = require( '../wms/layouts' );
var model = require( './models/Layout' );
var dbConfig = require( '../db.config.js' );
var mongoose = require( 'mongoose' );
mongoose.connect( dbConfig.connectionString );
model.create( entities, function( err, result ) {
console.log( 'error' );
console.log( err );
console.log( result );
} );