wapplr-mongo
v1.0.31
Published
MongoDB and Mongoose extension for Wapplr
Downloads
29
Readme
Wapplr-mongo
This package is the Mongoose extension for Wapplr.
//server.js
import wapplrMongo from "wapplr-mongo";
import wapplrServer from "wapplr";
const wapp = wapplrServer({config: {
server: {
database: {
mongoConnectionString: "mongodb://localhost/wapplr",
}
},
globals: {
WAPP: "yourBuildHash",
ROOT: __dirname
}
}
});
wapplrMongo({wapp});
const db = await wapp.server.database.addDatabase({
/*config: {
mongoConnectionString: "mongodb://localhost/wapplr",
} */
});
wapp.server.listen();
License
MIT