Issue #1: Create Database Handler and Config file
Signed-off-by:
Matheus Horstmann <mch15@inf.ufpr.br>
Showing
- .gitlab-ci.yml 23 additions, 1 deletion.gitlab-ci.yml
- CHANGELOG.md 9 additions, 0 deletionsCHANGELOG.md
- package.json 9 additions, 8 deletionspackage.json
- src/utils/config.spec.ts 33 additions, 0 deletionssrc/utils/config.spec.ts
- src/utils/config.ts 56 additions, 0 deletionssrc/utils/config.ts
- src/utils/dbHandler.spec.ts 566 additions, 0 deletionssrc/utils/dbHandler.spec.ts
- src/utils/dbHandler.ts 82 additions, 0 deletionssrc/utils/dbHandler.ts
- yarn.lock 171 additions, 114 deletionsyarn.lock
{ | ||
"name": "form-creator-api", | ||
"version": "0.0.3", | ||
"version": "0.0.5", | ||
"description": "RESTful API used to manage and answer forms.", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "scripts/start.sh config/config.env" | ||
, "test": "scripts/test.sh config/test.env" | ||
, "lint": "tslint -s node_modules/tslint-stylish -t stylish src/**/*.ts test/**/*.ts" | ||
, "show-coverage": "xdg-open coverage/lcov-report/index.html" | ||
, "doc-code": "typedoc --mode 'file' --module 'commonjs' --target 'ES6' --ignoreCompilerErrors --exclude '**/*.spec.ts' --out 'doc/code' 'src'" | ||
"start": "scripts/start.sh config/config.env", | ||
"test": "scripts/test.sh config/test.env", | ||
"lint": "tslint -s node_modules/tslint-stylish -t stylish src/**/*.ts test/**/*.ts", | ||
"show-coverage": "xdg-open coverage/lcov-report/index.html", | ||
"doc-code": "typedoc --mode 'file' --module 'commonjs' --target 'ES6' --ignoreCompilerErrors --exclude '**/*.spec.ts' --out 'doc/code' 'src'" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
... | ... | @@ -19,8 +19,10 @@ |
"dependencies": { | ||
"@types/async": "^2.0.50", | ||
"@types/express": "^4.16.0", | ||
"@types/pg": "^7.4.13", | ||
"async": "^2.6.1", | ||
"express": "^4.16.4", | ||
"pg": "^7.8.1", | ||
"ts-node": "^7.0.1", | ||
"typescript": "^3.2.2" | ||
}, | ||
... | ... | @@ -32,8 +34,7 @@ |
"istanbul": "1.1.0-alpha.1", | ||
"mocha": "^5.2.0", | ||
"supertest": "^3.3.0", | ||
"tslint": "^5.12.1", | ||
"tslint-stylish": "^2.1.0", | ||
"tslint": "^5.13.1", | ||
"typedoc": "^0.14.1" | ||
} | ||
} |
src/utils/config.spec.ts
0 → 100644
src/utils/config.ts
0 → 100644
src/utils/dbHandler.spec.ts
0 → 100644
This diff is collapsed.
src/utils/dbHandler.ts
0 → 100644
This diff is collapsed.
Please register or sign in to comment