Skip to content

Commit bf7ecc2

Browse files
committed
got mysql to work
1 parent f27f1d3 commit bf7ecc2

File tree

9 files changed

+16576
-14
lines changed

9 files changed

+16576
-14
lines changed

TODO.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
| app.js | 62 | Write a complete Documentation for this project
55
| config/index.js | 12 | Test for production and development senarios
66
| models/index.js | 14 | Automatically generate tests with the schema structure
7-
| routes/index.js | 294 | Test API versioning
8-
| routes/index.js | 295 | Test rate limiting
9-
| routes/index.js | 296 | Test complete route Loader test
10-
| routes/index.js | 297 | Test _sanitizeRequestUrl middleware function
11-
| routes/index.js | 298 | Test _allRequestData middleware function for default value scenario
12-
| routes/index.js | 299 | Test _enforceUserIdAndAppId middle function for when req.body is an array
13-
| routes/index.js | 300 | Make Log requests testable and write unit tests for it
14-
| routes/index.js | 301 | Develop the route loader into a separate node module to be publish on npm
15-
| routes/index.js | 302 | Develop all services onto separate node module to be publish on npm
7+
| routes/index.js | 298 | Test API versioning
8+
| routes/index.js | 299 | Test rate limiting
9+
| routes/index.js | 300 | Test complete route Loader test
10+
| routes/index.js | 301 | Test _sanitizeRequestUrl middleware function
11+
| routes/index.js | 302 | Test _allRequestData middleware function for default value scenario
12+
| routes/index.js | 303 | Test _enforceUserIdAndAppId middle function for when req.body is an array
13+
| routes/index.js | 304 | Make Log requests testable and write unit tests for it
14+
| routes/index.js | 305 | Develop the route loader into a separate node module to be publish on npm
15+
| routes/index.js | 306 | Develop all services onto separate node module to be publish on npm
1616
| services/logger/index.js | 36 | Test Error Handler
1717
| services/queue/clock.js | 11 | work on a clock functionality so kue can support scheduled jobs
1818
| services/queue/clock.js | 12 | Use the cron package here https://www.npmjs.com/package/cron for timer

config/development.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,11 @@ module.exports = {
2323
queueUIPassword: process.env.QUEUE_UI_PASSWORD || 'password123/',
2424
queueUIPort: process.env.QUEUE_UI_PORT || 3000,
2525
enforceUserIdAppIdDeveloperId: process.env.ENFORCE_USER_ID_APP_ID_DEVELOPER_ID || 'no',
26-
apiDBKey: process.env.API_DB_Key || 'MDg4NWM1NTA0ZTZlNTQ5MjAzNzA1ODBlOWVkNzI3MzdlNmYxZTcyMjVkOTA3N2JjYTBhZjA0YmM0N2U4NDZkNi8vLy8vLzQ1MDY='
26+
apiDBKey: process.env.API_DB_Key || 'MDg4NWM1NTA0ZTZlNTQ5MjAzNzA1ODBlOWVkNzI3MzdlNmYxZTcyMjVkOTA3N2JjYTBhZjA0YmM0N2U4NDZkNi8vLy8vLzQ1MDY=',
27+
SQLUsername: process.env.SQL_USERNAME || 'root',
28+
SQLPassword: process.env.SQL_PASSWORD || null,
29+
SQLDatabase: process.env.SQL_DATABASE || 'snipe',
30+
SQLHost: process.env.SQL_HOST || '192.168.99.100',
31+
SQLPort: process.env.SQL_PORT || 3306,
32+
SQLDriver: process.env.SQL_DRIVER || 'mysql' //'mysql'|'sqlite'|'postgres'|'mssql'
2733
};

config/production.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,11 @@ module.exports = {
2323
queueUIPassword: process.env.QUEUE_UI_PASSWORD || 'password123/',
2424
queueUIPort: process.env.QUEUE_UI_PORT || 3000,
2525
enforceUserIdAppIdDeveloperId: process.env.ENFORCE_USER_ID_APP_ID_DEVELOPER_ID || 'no',
26-
apiDBKey: process.env.API_DB_Key || 'MDg4NWM1NTA0ZTZlNTQ5MjAzNzA1ODBlOWVkNzI3MzdlNmYxZTcyMjVkOTA3N2JjYTBhZjA0YmM0N2U4NDZkNi8vLy8vLzQ1MDY='
26+
apiDBKey: process.env.API_DB_Key || 'MDg4NWM1NTA0ZTZlNTQ5MjAzNzA1ODBlOWVkNzI3MzdlNmYxZTcyMjVkOTA3N2JjYTBhZjA0YmM0N2U4NDZkNi8vLy8vLzQ1MDY=',
27+
SQLUsername: process.env.SQL_USERNAME || 'root',
28+
SQLPassword: process.env.SQL_PASSWORD || null,
29+
SQLDatabase: process.env.SQL_DATABASE || 'snipe',
30+
SQLHost: process.env.SQL_HOST || 'localhost',
31+
SQLPort: process.env.SQL_PORT || 3306,
32+
SQLDriver: process.env.SQL_DRIVER || 'mysql' //'mysql'|'sqlite'|'postgres'|'mssql'
2733
};

0 commit comments

Comments
 (0)