var Schema = Mongoose.Schema; // The data schema for an event that we're tracking in our analytics engine var analyticEventSchema = new Schema({ category : { type: String, required: true, trim: true }, action : { type: String, required: true, trim: true }, label : { type: String, trim: true }, source : { type: String, required: true,trim: true }, dateCreated : { type: Date, required: true, default: Date.now } }); var analyticEvent = Mongoose.model('analytic_event', analyticEventSchema); module.exports = { AnalyticEvent: analyticEvent }; /models/analyticEvent.js
var Schema = Mongoose.Schema; // The data schema for an event that we're tracking in our analytics engine var analyticEventSchema = new Schema({ category : { type: String, required: true, trim: true }, action : { type: String, required: true, trim: true }, label : { type: String, trim: true }, source : { type: String, required: true,trim: true }, dateCreated : { type: Date, required: true, default: Date.now } }); var analyticEvent = Mongoose.model('analytic_event', analyticEventSchema); module.exports = { AnalyticEvent: analyticEvent }; /models/analyticEvent.js
var Schema = Mongoose.Schema; // The data schema for an event that we're tracking in our analytics engine var analyticEventSchema = new Schema({ category : { type: String, required: true, trim: true }, action : { type: String, required: true, trim: true }, label : { type: String, trim: true }, source : { type: String, required: true,trim: true }, dateCreated : { type: Date, required: true, default: Date.now } }); var analyticEvent = Mongoose.model('analytic_event', analyticEventSchema); module.exports = { AnalyticEvent: analyticEvent }; /models/analyticEvent.js
var Schema = Mongoose.Schema; // The data schema for an event that we're tracking in our analytics engine var analyticEventSchema = new Schema({ category : { type: String, required: true, trim: true }, action : { type: String, required: true, trim: true }, label : { type: String, trim: true }, source : { type: String, required: true,trim: true },\ dateCreated : { type: Date, required: true, default: Date.now } }); var analyticEvent = Mongoose.model('analytic_event', analyticEventSchema); module.exports = { AnalyticEvent: analyticEvent }; /models/analyticEvent.js
"version": "0.0.1", "description": "An example hapi and mongo db app", "main": "server.js", "dependencies": { "hapi": "3.0.1", "mongoose": "~3.8.7", "boom": "^2.2.2", "lodash": "^2.4.1", "joi": "^2.8.0" } } create a package.json file with these contents create a folder for the app $ npm install install dependencies and install express
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4