-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.js
More file actions
35 lines (29 loc) · 741 Bytes
/
config.js
File metadata and controls
35 lines (29 loc) · 741 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
let appConfig = {
protocol: 'http://',
host: 'localhost',
port: process.env.NODE_APP_PORT || 3000,
saltRounds: 15,
secretKey: "X1t(01?G449042l",
resetCodeLength: 12,
addHours: 1
}
let dbConfig = {
connection: 'mongodb://localhost:27017/nodeRestApi'
}
let filePaths = {
category: 'uploads/category',
product: 'uploads/product',
user: 'uploads/user',
}
let routeSlug = {
category: 'categories',
product: 'products',
auth: 'auth',
users: 'users',
roles: 'roles'
}
appConfig.baseUrl = appConfig.protocol + appConfig.host + ":" + appConfig.port + '/';
appConfig.dbConfig = dbConfig;
appConfig.filePaths = filePaths;
appConfig.routeSlug = routeSlug;
module.exports = appConfig;