-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.js
41 lines (36 loc) · 1001 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Copyright (c) 2012-2015 Digital Bazaar, Inc. All rights reserved.
*/
var bedrock = require('bedrock');
// bedrock modules to load
require('bedrock-express');
require('bedrock-docs');
require('bedrock-identity');
require('bedrock-idp');
require('bedrock-i18n');
require('bedrock-jobs');
require('bedrock-mail');
require('bedrock-mongodb');
require('bedrock-passport');
require('bedrock-permission');
require('bedrock-protractor');
require('bedrock-request-limiter');
require('bedrock-requirejs');
require('bedrock-rest');
require('bedrock-server');
require('bedrock-session-mongodb');
require('bedrock-validation');
require('bedrock-views');
// load local config
require('./configs/dev');
// add dev data
bedrock.events.on('bedrock.configure', function() {
require('./configs/roles');
require('./configs/common-data');
require('./configs/dev-data');
});
// configure for tests
bedrock.events.on('bedrock.test.configure', function() {
require('./configs/test');
});
bedrock.start();