chyz 1.2.1-rc.0 → 1.2.4-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BaseChyz.ts +454 -0
- package/Chyz.ts +11 -0
- package/Doc/Git.md +29 -0
- package/Doc/Moel kullanma.md +13 -0
- package/Examples/Controllers/ApiController.ts +110 -0
- package/Examples/Models/User.ts +122 -0
- package/Examples/index-keycloack.ts +78 -0
- package/Examples/index.ts +60 -0
- package/Examples/keycloak.json +7 -0
- package/Examples/package.json +49 -0
- package/Examples/tsconfig.json +21 -0
- package/README.md +518 -0
- package/base/ActionFilter.ts +71 -0
- package/base/BaseError.ts +28 -0
- package/base/BaseObject.ts +19 -0
- package/base/Behavior.ts +6 -0
- package/base/CWebController.ts +84 -0
- package/base/Component.ts +66 -0
- package/base/Configurable.ts +10 -0
- package/base/DataErrorDbException.ts +16 -0
- package/base/DbConnection.ts +55 -0
- package/base/ForbiddenHttpException.ts +15 -0
- package/base/InvalidArgumentException.ts +16 -0
- package/base/InvalidConfigException.ts +16 -0
- package/base/Model.ts +555 -0
- package/base/ModelManager.ts +19 -0
- package/base/NotFoundHttpException.ts +14 -0
- package/base/RestClient.ts +28 -0
- package/base/UnauthorizedHttpException.ts +17 -0
- package/base/ValidationHttpException.ts +14 -0
- package/base/db/Exception.ts +14 -0
- package/base/index.ts +18 -0
- package/decorator/Middleware.ts +9 -0
- package/decorator/controller.ts +22 -0
- package/decorator/enums/ControllerDecoratorParams.ts +5 -0
- package/decorator/get.ts +37 -0
- package/decorator/index.ts +3 -0
- package/decorator/post.ts +36 -0
- package/{BaseChyz.js → dist/BaseChyz.js} +0 -0
- package/{BaseChyz.js.map → dist/BaseChyz.js.map} +0 -0
- package/{Chyz.js → dist/Chyz.js} +0 -0
- package/{Chyz.js.map → dist/Chyz.js.map} +0 -0
- package/{base → dist/base}/ActionFilter.js +0 -0
- package/{base → dist/base}/ActionFilter.js.map +0 -0
- package/{base → dist/base}/BaseError.js +0 -0
- package/{base → dist/base}/BaseError.js.map +0 -0
- package/{base → dist/base}/BaseObject.js +0 -0
- package/{base → dist/base}/BaseObject.js.map +0 -0
- package/{base → dist/base}/Behavior.js +0 -0
- package/{base → dist/base}/Behavior.js.map +0 -0
- package/{base → dist/base}/CWebController.js +0 -0
- package/{base → dist/base}/CWebController.js.map +0 -0
- package/{base → dist/base}/Component.js +0 -0
- package/{base → dist/base}/Component.js.map +0 -0
- package/{base → dist/base}/Configurable.js +0 -0
- package/{base → dist/base}/Configurable.js.map +0 -0
- package/{base → dist/base}/DataErrorDbException.js +0 -0
- package/{base → dist/base}/DataErrorDbException.js.map +0 -0
- package/{base → dist/base}/DbConnection.js +0 -0
- package/{base → dist/base}/DbConnection.js.map +0 -0
- package/{base → dist/base}/ForbiddenHttpException.js +0 -0
- package/{base → dist/base}/ForbiddenHttpException.js.map +0 -0
- package/{base → dist/base}/InvalidArgumentException.js +0 -0
- package/{base → dist/base}/InvalidArgumentException.js.map +0 -0
- package/{base → dist/base}/InvalidConfigException.js +0 -0
- package/{base → dist/base}/InvalidConfigException.js.map +0 -0
- package/{base → dist/base}/Model.js +0 -0
- package/{base → dist/base}/Model.js.map +0 -0
- package/{base → dist/base}/ModelManager.js +0 -0
- package/{base → dist/base}/ModelManager.js.map +0 -0
- package/{base → dist/base}/NotFoundHttpException.js +0 -0
- package/{base → dist/base}/NotFoundHttpException.js.map +0 -0
- package/{base → dist/base}/RestClient.js +0 -0
- package/{base → dist/base}/RestClient.js.map +0 -0
- package/{base → dist/base}/UnauthorizedHttpException.js +0 -0
- package/{base → dist/base}/UnauthorizedHttpException.js.map +0 -0
- package/{base → dist/base}/ValidationHttpException.js +0 -0
- package/{base → dist/base}/ValidationHttpException.js.map +0 -0
- package/{base → dist/base}/db/Exception.js +0 -0
- package/{base → dist/base}/db/Exception.js.map +0 -0
- package/{base → dist/base}/index.js +0 -0
- package/{base → dist/base}/index.js.map +0 -0
- package/{decorator → dist/decorator}/Middleware.js +0 -0
- package/{decorator → dist/decorator}/Middleware.js.map +0 -0
- package/{decorator → dist/decorator}/controller.js +0 -0
- package/{decorator → dist/decorator}/controller.js.map +0 -0
- package/{decorator → dist/decorator}/enums/ControllerDecoratorParams.js +0 -0
- package/{decorator → dist/decorator}/enums/ControllerDecoratorParams.js.map +0 -0
- package/{decorator → dist/decorator}/get.js +0 -0
- package/{decorator → dist/decorator}/get.js.map +0 -0
- package/{decorator → dist/decorator}/index.js +0 -0
- package/{decorator → dist/decorator}/index.js.map +0 -0
- package/{decorator → dist/decorator}/post.js +0 -0
- package/{decorator → dist/decorator}/post.js.map +0 -0
- package/{filters → dist/filters}/AccessControl.js +0 -1
- package/dist/filters/AccessControl.js.map +1 -0
- package/{filters → dist/filters}/AccessRule.js +0 -0
- package/{filters → dist/filters}/AccessRule.js.map +0 -0
- package/{filters → dist/filters}/auth/AuthInterface.js +0 -0
- package/{filters → dist/filters}/auth/AuthInterface.js.map +0 -0
- package/{filters → dist/filters}/auth/AuthMethod.js +0 -0
- package/{filters → dist/filters}/auth/AuthMethod.js.map +1 -1
- package/{filters → dist/filters}/auth/HttpBasicAuth.js +0 -0
- package/{filters → dist/filters}/auth/HttpBasicAuth.js.map +0 -0
- package/{filters → dist/filters}/auth/HttpBearerAuth.js +0 -0
- package/{filters → dist/filters}/auth/HttpBearerAuth.js.map +0 -0
- package/{filters → dist/filters}/auth/HttpHeaderAuth.js +0 -0
- package/{filters → dist/filters}/auth/HttpHeaderAuth.js.map +0 -0
- package/{filters → dist/filters}/auth/JwtHttpBearerAuth.js +2 -3
- package/{filters → dist/filters}/auth/JwtHttpBearerAuth.js.map +1 -1
- package/{filters → dist/filters}/auth/KeyCloakHttpBearerAuth.js +0 -0
- package/{filters → dist/filters}/auth/KeyCloakHttpBearerAuth.js.map +0 -0
- package/{filters → dist/filters}/auth/index.js +0 -0
- package/{filters → dist/filters}/auth/index.js.map +0 -0
- package/{filters → dist/filters}/index.js +0 -0
- package/{filters → dist/filters}/index.js.map +0 -0
- package/{index.js → dist/index.js} +0 -0
- package/{index.js.map → dist/index.js.map} +0 -0
- package/dist/log/config/log4js.json +55 -0
- package/{model → dist/model}/RouteDefinition.js +0 -0
- package/{model → dist/model}/RouteDefinition.js.map +0 -0
- package/dist/package.json +59 -0
- package/{rbac → dist/rbac}/AuthAssignment.js +0 -0
- package/{rbac → dist/rbac}/AuthAssignment.js.map +0 -0
- package/{rbac → dist/rbac}/AuthItem.js +0 -0
- package/{rbac → dist/rbac}/AuthItem.js.map +0 -0
- package/{rbac → dist/rbac}/AuthItemChild.js +0 -0
- package/{rbac → dist/rbac}/AuthItemChild.js.map +0 -0
- package/{rbac → dist/rbac}/AuthManager.js +0 -0
- package/{rbac → dist/rbac}/AuthManager.js.map +0 -0
- package/{requiments → dist/requiments}/Glob.js +0 -0
- package/{requiments → dist/requiments}/Glob.js.map +0 -0
- package/{requiments → dist/requiments}/ReflectUtil.js +0 -0
- package/{requiments → dist/requiments}/ReflectUtil.js.map +0 -0
- package/{requiments → dist/requiments}/Utils.js +0 -0
- package/{requiments → dist/requiments}/Utils.js.map +0 -0
- package/{validators → dist/validators}/BooleanValidator.js +0 -0
- package/{validators → dist/validators}/BooleanValidator.js.map +0 -0
- package/{validators → dist/validators}/CompareValidator.js +0 -0
- package/{validators → dist/validators}/CompareValidator.js.map +0 -0
- package/{validators → dist/validators}/DateValidator.js +0 -0
- package/{validators → dist/validators}/DateValidator.js.map +0 -0
- package/{validators → dist/validators}/EmailValidator.js +0 -0
- package/{validators → dist/validators}/EmailValidator.js.map +0 -0
- package/{validators → dist/validators}/Validator.js +0 -0
- package/{validators → dist/validators}/Validator.js.map +0 -0
- package/{web → dist/web}/IdentityInterface.js +0 -0
- package/{web → dist/web}/IdentityInterface.js.map +0 -0
- package/{web → dist/web}/WebUser.js +0 -0
- package/{web → dist/web}/WebUser.js.map +0 -0
- package/filters/AccessControl.ts +74 -0
- package/filters/AccessRule.ts +182 -0
- package/filters/auth/AuthInterface.ts +34 -0
- package/filters/auth/AuthMethod.ts +89 -0
- package/filters/auth/HttpBasicAuth.ts +75 -0
- package/filters/auth/HttpBearerAuth.ts +31 -0
- package/filters/auth/HttpHeaderAuth.ts +53 -0
- package/filters/auth/JwtHttpBearerAuth.ts +80 -0
- package/filters/auth/KeyCloakHttpBearerAuth.ts +115 -0
- package/filters/auth/index.ts +4 -0
- package/filters/index.ts +2 -0
- package/index.ts +16 -0
- package/log/config/log4js.json +1 -1
- package/model/RouteDefinition.ts +18 -0
- package/package-lock.json +5259 -0
- package/package.json +2 -2
- package/rbac/AuthAssignment.ts +50 -0
- package/rbac/AuthItem.ts +57 -0
- package/rbac/AuthItemChild.ts +50 -0
- package/rbac/AuthManager.ts +398 -0
- package/requiments/Glob.ts +9 -0
- package/requiments/ReflectUtil.ts +26 -0
- package/requiments/Utils.ts +63 -0
- package/tsconfig.json +18 -0
- package/validators/BooleanValidator.ts +0 -0
- package/validators/CompareValidator.ts +0 -0
- package/validators/DateValidator.ts +0 -0
- package/validators/EmailValidator.ts +0 -0
- package/validators/Validator.ts +27 -0
- package/web/IdentityInterface.ts +68 -0
- package/web/WebUser.ts +187 -0
- package/filters/AccessControl.js.map +0 -1
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2021. Chy Bilgisayar Bilisim
|
|
3
|
+
* Author: Cihan Ozturk
|
|
4
|
+
* E-mail: cihan@chy.com.tr
|
|
5
|
+
* Github:https://github.com/cihan53/
|
|
6
|
+
*/
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
import {IdentityInterface} from "../../web/IdentityInterface";
|
|
11
|
+
import {DataTypes} from "../../base";
|
|
12
|
+
import {BaseChyz} from "../../index";
|
|
13
|
+
|
|
14
|
+
const JsonWebToken = require("jsonwebtoken");
|
|
15
|
+
|
|
16
|
+
export class User implements IdentityInterface {
|
|
17
|
+
[x: string]: any;
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @param id
|
|
23
|
+
*/
|
|
24
|
+
findIdentity(id: number) {
|
|
25
|
+
throw new Error("Method not implemented.");
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
getId(): number {
|
|
32
|
+
throw new Error("Method not implemented.");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @param permissionName
|
|
38
|
+
* @param params
|
|
39
|
+
* @param allowCaching
|
|
40
|
+
*/
|
|
41
|
+
can(permissionName: string, params: any[], allowCaching: boolean): boolean | null {
|
|
42
|
+
throw new Error("Method not implemented.");
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
getAuthKey(): string {
|
|
49
|
+
throw new Error("Method not implemented.");
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
validateAuthKey(authKey: string): boolean {
|
|
53
|
+
throw new Error("Method not implemented.");
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
public attributes() {
|
|
60
|
+
return {
|
|
61
|
+
// Model attributes are defined here
|
|
62
|
+
name: {
|
|
63
|
+
type: DataTypes.STRING,
|
|
64
|
+
allowNull: false
|
|
65
|
+
},
|
|
66
|
+
username: {
|
|
67
|
+
type: DataTypes.STRING,
|
|
68
|
+
allowNull: false
|
|
69
|
+
},
|
|
70
|
+
password: {
|
|
71
|
+
type: DataTypes.STRING,
|
|
72
|
+
allowNull: false
|
|
73
|
+
},
|
|
74
|
+
email: {
|
|
75
|
+
type: DataTypes.STRING,
|
|
76
|
+
allowNull: false
|
|
77
|
+
},
|
|
78
|
+
permissions_id: {
|
|
79
|
+
type: DataTypes.INTEGER,
|
|
80
|
+
allowNull: false
|
|
81
|
+
},
|
|
82
|
+
authkey: {
|
|
83
|
+
type: DataTypes.STRING
|
|
84
|
+
// allowNull defaults to true
|
|
85
|
+
},
|
|
86
|
+
status: {
|
|
87
|
+
type: DataTypes.STRING
|
|
88
|
+
// allowNull defaults to true
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
async findIdentityByAccessToken(token, type) {
|
|
94
|
+
|
|
95
|
+
let decoded = JsonWebToken.decode(token, {complete: true})
|
|
96
|
+
if(!decoded.payload.user) {
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
let identity = await this.findOne({where: {id: parseInt(decoded.payload.user)}});
|
|
101
|
+
if (identity) {
|
|
102
|
+
BaseChyz.debug("Find Identity By AccessToken: User Found", decoded.payload)
|
|
103
|
+
try {
|
|
104
|
+
JsonWebToken.verify(token, identity.authkey);
|
|
105
|
+
BaseChyz.debug("Find Identity By AccessToken: User Verify Success")
|
|
106
|
+
return identity;
|
|
107
|
+
} catch (err) {
|
|
108
|
+
if (err.name == "TokenExpiredError")
|
|
109
|
+
BaseChyz.debug("Find Identity By AccessToken: Token Expired")
|
|
110
|
+
else
|
|
111
|
+
BaseChyz.debug("Find Identity By AccessToken: User Verify Failed")
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
BaseChyz.debug("Find Identity By AccessToken: User Verify Failed")
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2021. Chy Bilgisayar Bilisim
|
|
3
|
+
* Author: Cihan Ozturk
|
|
4
|
+
* E-mail: cihan@chy.com.tr
|
|
5
|
+
* Github:https://github.com/cihan53/
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
require('dotenv-flow').config();
|
|
10
|
+
|
|
11
|
+
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
|
|
12
|
+
|
|
13
|
+
import Chyz from "../Chyz";
|
|
14
|
+
import {WebUser} from "../web/WebUser";
|
|
15
|
+
import {KeycloakUser as Identity} from "./Models/KeycloakUser";
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
import {DbConnection} from "../base/DbConnection";
|
|
18
|
+
|
|
19
|
+
var Keycloak = require('keycloak-connect');
|
|
20
|
+
var session = require('express-session');
|
|
21
|
+
var memoryStore = new session.MemoryStore();
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
var keycloakConfig = {
|
|
25
|
+
"realm": "CameraBox",
|
|
26
|
+
"auth-server-url": "https://keycloak.hubbox.io:8080/auth/",
|
|
27
|
+
//"ssl-required": "external",
|
|
28
|
+
"resource": "izanami",
|
|
29
|
+
"verify-token-audience": true,
|
|
30
|
+
"bearerOnly": true,
|
|
31
|
+
"confidential-port":0,
|
|
32
|
+
"policy-enforcer":{},
|
|
33
|
+
"credentials": {
|
|
34
|
+
"secret": "0b476571-28ab-49b1-9968-90fce6294d5a"
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
Keycloak.prototype.accessDenied = function () {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
var keycloak = new Keycloak({scope: 'offline_access'}, keycloakConfig);
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
let config = {
|
|
49
|
+
port: 3000,
|
|
50
|
+
controllerpath: "C:\\PROJELER\\github\\Chy-Nodejs-Framework\\Examples\\Controllers",
|
|
51
|
+
components: {
|
|
52
|
+
db: {
|
|
53
|
+
class: DbConnection,
|
|
54
|
+
database: process.env.DBDATABASE,
|
|
55
|
+
username: process.env.DBUSER,
|
|
56
|
+
password: process.env.DBPASS,
|
|
57
|
+
options: {
|
|
58
|
+
host: process.env.DBHOST,
|
|
59
|
+
dialect: 'postgres', /* one of 'mysql' | 'mariadb' | 'postgres' | 'mssql' */
|
|
60
|
+
// disable logging; default: console.log
|
|
61
|
+
logging: false
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
user: {
|
|
65
|
+
'class': WebUser,
|
|
66
|
+
'identityClass': Identity
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
middlewares: {
|
|
70
|
+
keycloak: {
|
|
71
|
+
keycloak: keycloak,
|
|
72
|
+
config: {
|
|
73
|
+
logout: '/logout'
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
Chyz.app(config).Start();
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2021. Chy Bilgisayar Bilisim
|
|
3
|
+
* Author: Cihan Ozturk
|
|
4
|
+
* E-mail: cihan@chy.com.tr
|
|
5
|
+
* Github:https://github.com/cihan53/
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
// import {BaseChyz} from "../index";
|
|
10
|
+
import Chyz from "../Chyz";
|
|
11
|
+
import {WebUser} from "../web/WebUser";
|
|
12
|
+
import {User} from "./Models/User";
|
|
13
|
+
// import {DbConnection} from "../base";
|
|
14
|
+
// import {AuthManager} from "../rbac/AuthManager";
|
|
15
|
+
|
|
16
|
+
require('dotenv-flow').config();
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
let config = {
|
|
21
|
+
port: process.env.PORT,
|
|
22
|
+
controllerpath: process.env.CONTROLLER_PATH,
|
|
23
|
+
components: {
|
|
24
|
+
|
|
25
|
+
// db: {
|
|
26
|
+
// class: DbConnection,
|
|
27
|
+
// database: process.env.DBDATABASE,
|
|
28
|
+
// username: process.env.DBUSER,
|
|
29
|
+
// password: process.env.DBPASS,
|
|
30
|
+
//
|
|
31
|
+
// options: {
|
|
32
|
+
// host: process.env.DBHOST,
|
|
33
|
+
// dialect: 'postgres', /* one of 'mysql' | 'mariadb' | 'postgres' | 'mssql' */
|
|
34
|
+
// // disable logging; default: console.log
|
|
35
|
+
// logging: (msg: any) => BaseChyz.debug(msg)
|
|
36
|
+
// }
|
|
37
|
+
// },
|
|
38
|
+
// db2: {
|
|
39
|
+
// class: DbConnection,
|
|
40
|
+
// database: process.env.DBDATABASE,
|
|
41
|
+
// username: process.env.DBUSER,
|
|
42
|
+
// password: process.env.DBPASS,
|
|
43
|
+
// options: {
|
|
44
|
+
// host: process.env.DBHOST,
|
|
45
|
+
// dialect: 'postgres', /* one of 'mysql' | 'mariadb' | 'postgres' | 'mssql' */
|
|
46
|
+
// // disable logging; default: console.log
|
|
47
|
+
// logging: (msg: any) => BaseChyz.debug('DB2', msg)
|
|
48
|
+
// }
|
|
49
|
+
// },
|
|
50
|
+
// authManager: {
|
|
51
|
+
// class: AuthManager,
|
|
52
|
+
// },
|
|
53
|
+
user: {
|
|
54
|
+
'class': WebUser,
|
|
55
|
+
'identityClass': User
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
Chyz.app(config).Start();
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "edis-manager-node",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Entranet ve Erken Deprem Bildirim Sistemi (EDİS) entegrasyonu",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "nodemon -x ts-node index.ts",
|
|
8
|
+
"debug": "ts-node index.ts",
|
|
9
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/cihan53/edis-manager-node.git"
|
|
14
|
+
},
|
|
15
|
+
"author": "",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/cihan53/edis-manager-node/issues"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://github.com/cihan53/edis-manager-node#readme",
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"babel-plugin-transform-decorators-legacy": "^1.3.5",
|
|
23
|
+
"bcrypt": "^5.0.1",
|
|
24
|
+
"body-parser": "^1.19.0",
|
|
25
|
+
"dotenv-flow": "^3.2.0",
|
|
26
|
+
"express": "^4.17.1",
|
|
27
|
+
"glob": "^7.1.7",
|
|
28
|
+
"ioredis": "^4.28.5",
|
|
29
|
+
"jsonwebtoken": "^8.5.1",
|
|
30
|
+
"keycloak-connect": "^15.0.2",
|
|
31
|
+
"lodash": "^4.17.21",
|
|
32
|
+
"log4js": "^6.3.0",
|
|
33
|
+
"method-override": "^3.0.0",
|
|
34
|
+
"passport": "^0.4.1",
|
|
35
|
+
"pg": "^8.7.1",
|
|
36
|
+
"pg-hstore": "^2.3.4",
|
|
37
|
+
"reflect-metadata": "^0.1.13",
|
|
38
|
+
"sequelize": "^6.6.5",
|
|
39
|
+
"sequelize-transparent-cache": "^2.3.0",
|
|
40
|
+
"sequelize-transparent-cache-ioredis": "^2.3.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/express": "^4.17.13",
|
|
44
|
+
"@types/node": "^16.4.13",
|
|
45
|
+
"nodemon": "^2.0.12",
|
|
46
|
+
"ts-node": "^10.2.0",
|
|
47
|
+
"typescript": "^4.3.5"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES6",
|
|
4
|
+
"experimentalDecorators": true,
|
|
5
|
+
"emitDecoratorMetadata": true,
|
|
6
|
+
// "isolatedModules": true,
|
|
7
|
+
"removeComments": true,
|
|
8
|
+
// "esModuleInterop": true,
|
|
9
|
+
"allowSyntheticDefaultImports": true,
|
|
10
|
+
"moduleResolution": "node"
|
|
11
|
+
},
|
|
12
|
+
"exclude": [
|
|
13
|
+
"node_modules"
|
|
14
|
+
],
|
|
15
|
+
"include": [
|
|
16
|
+
"__tests__/**/*.ts",
|
|
17
|
+
"Controllers/**/*.ts",
|
|
18
|
+
"Models/**/*.ts",
|
|
19
|
+
"environment.d.ts",
|
|
20
|
+
]
|
|
21
|
+
}
|