-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
58 lines (57 loc) · 945 Bytes
/
config.js
File metadata and controls
58 lines (57 loc) · 945 Bytes
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
const FRONTEND_ROOT = 'http://localhost:3000';
const FRONTEND_ADMIN_ROOT = 'http://localhost:3001';
const VALID_ACCOUNT_TYPES = [
{
id: 'business',
public: true
}, {
id: 'organisation',
public: true
}, {
id: 'individual',
public: true
}, {
id: 'admin',
public: false,
hasAdminPriveleges: true
}, {
id: 'dev',
public: false,
hasAdminPriveleges: true,
hasDevPriveleges: true
}
];
module.exports = {
environment: 'test',
frontendRoot: FRONTEND_ROOT,
acceptedOrigins: [FRONTEND_ROOT, FRONTEND_ADMIN_ROOT],
numSaltRounds: 12,
users: {
accountTypes: VALID_ACCOUNT_TYPES,
name: {
maxLength: 64
},
email: {
maxLength: 128
},
password: {
minLength: 4,
maxLength: 64
},
statuses: ['pending', 'active', 'deactivated']
},
offers: {
description: {
maxLength: 200
},
dealValue: {
maxLength: 20
}
},
email: {
displayName: 'ESTA'
},
database: {
name: 'esta-project'
}
};