very-express 0.5.14 → 0.5.16
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/.eslintrc.json +0 -0
- package/.gitattributes +0 -0
- package/.github/workflows/npm-start.yml +0 -0
- package/LICENSE +0 -0
- package/README.md +62 -62
- package/dist/index.js +229 -226
- package/dist/templates/_projectSettings/env +21 -21
- package/dist/templates/_projectSettings/package.json +49 -49
- package/dist/templates/jsonSchema/User.json +85 -85
- package/dist/templates/root/public/css/style.css +7 -7
- package/dist/templates/root/public/js/logincallback.js +18 -18
- package/dist/templates/root/public/js/mytokens.js +10 -10
- package/dist/templates/root/public/js/refreshtokens.js +22 -22
- package/docs/ForeignKey.md +0 -0
- package/docs/appGenerated/auth.md +0 -0
- package/docs/developmentNote.md +0 -0
- package/docs/releaseNote/v0-5-0.md +0 -0
- package/docs/roadMap/released.md +0 -0
- package/docs/roadMap/v0-6-0.md +0 -0
- package/docs/roadMap/v0-7-0.md +0 -0
- package/docs/vexJsonSchema.md +0 -0
- package/package.json +51 -51
- package/scripts/build.js +0 -0
- package/scripts/copyTsTemplates.js +0 -0
- package/scripts/merge.js +0 -0
- package/tsconfig.json +121 -121
- package/vex.config.json +36 -36
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
APP_HOST=http://localhost:3000
|
|
2
|
-
MONGODB_URI=mongodb://localhost:27017/veryExpressDB
|
|
3
|
-
|
|
4
|
-
LOGIN_SUCCESS_REDIRECT_PATH=/logincallback
|
|
5
|
-
LOGIN_FAILED_REDIRECT_PATH=/logincallback
|
|
6
|
-
|
|
7
|
-
# OAUTH
|
|
8
|
-
OAUTH_GOOGLE_CLIENTID=
|
|
9
|
-
OAUTH_GOOGLE_CLIENTSECRET=
|
|
10
|
-
OAUTH_GITHUB_CLIENTID=
|
|
11
|
-
OAUTH_GITHUB_CLIENTSECRET=
|
|
12
|
-
# OAUTH_MICROSOFT_CLIENTID=
|
|
13
|
-
# OAUTH_MICROSOFT_CLIENTSECRET=
|
|
14
|
-
# OAUTH_APPLE_CLIENTID=
|
|
15
|
-
# OAUTH_APPLE_CLIENTSECRET=
|
|
16
|
-
|
|
17
|
-
# JWT token
|
|
18
|
-
ACCESS_TOKEN_EXPIRE_TIME='5m'
|
|
19
|
-
REFRESH_TOKEN_EXPIRE_TIME='15m'
|
|
20
|
-
SESSION_COOKIE_SECRET='my-session-cookie-secret'
|
|
21
|
-
JWT_ALGORITHM='HS256'
|
|
1
|
+
APP_HOST=http://localhost:3000
|
|
2
|
+
MONGODB_URI=mongodb://localhost:27017/veryExpressDB
|
|
3
|
+
|
|
4
|
+
LOGIN_SUCCESS_REDIRECT_PATH=/logincallback
|
|
5
|
+
LOGIN_FAILED_REDIRECT_PATH=/logincallback
|
|
6
|
+
|
|
7
|
+
# OAUTH
|
|
8
|
+
OAUTH_GOOGLE_CLIENTID=
|
|
9
|
+
OAUTH_GOOGLE_CLIENTSECRET=
|
|
10
|
+
OAUTH_GITHUB_CLIENTID=
|
|
11
|
+
OAUTH_GITHUB_CLIENTSECRET=
|
|
12
|
+
# OAUTH_MICROSOFT_CLIENTID=
|
|
13
|
+
# OAUTH_MICROSOFT_CLIENTSECRET=
|
|
14
|
+
# OAUTH_APPLE_CLIENTID=
|
|
15
|
+
# OAUTH_APPLE_CLIENTSECRET=
|
|
16
|
+
|
|
17
|
+
# JWT token
|
|
18
|
+
ACCESS_TOKEN_EXPIRE_TIME='5m'
|
|
19
|
+
REFRESH_TOKEN_EXPIRE_TIME='15m'
|
|
20
|
+
SESSION_COOKIE_SECRET='my-session-cookie-secret'
|
|
21
|
+
JWT_ALGORITHM='HS256'
|
|
22
22
|
JWT_SECRET0='my-secret-key0'
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "index.js",
|
|
3
|
-
"scripts": {
|
|
4
|
-
"build": "tsc -p . && node scripts/build.js",
|
|
5
|
-
"start": "node dist/server.js",
|
|
6
|
-
"dev": "nodemon --watch src --exec ts-node src/server.ts",
|
|
7
|
-
"docker-build": "docker build -t very-express .",
|
|
8
|
-
"docker-start": "docker run -p 3000:3000 very-express"
|
|
9
|
-
},
|
|
10
|
-
"dependencies": {
|
|
11
|
-
"cookie": "^0.6.0",
|
|
12
|
-
"cookie-parser": "^1.4.6",
|
|
13
|
-
"dotenv": "^16.4.4",
|
|
14
|
-
"express": "^4.18.2",
|
|
15
|
-
"express-validator": "^7.0.1",
|
|
16
|
-
"helmet": "^7.1.0",
|
|
17
|
-
"js-yaml": "^4.1.0",
|
|
18
|
-
"jsonwebtoken": "^9.0.2",
|
|
19
|
-
"mongo-ts-querystring": "^1.0.4",
|
|
20
|
-
"mongodb": "^5.6.0",
|
|
21
|
-
"mongoose": "^7.4.0",
|
|
22
|
-
"passport": "^0.7.0",
|
|
23
|
-
"passport-google-oauth20": "^2.0.0",
|
|
24
|
-
"passport-github": "^1.1.0",
|
|
25
|
-
"passport-jwt": "^4.0.1",
|
|
26
|
-
"swagger-ui-express": "^5.0.0"
|
|
27
|
-
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@types/cookie-parser": "^1.4.7",
|
|
30
|
-
"@types/jsonwebtoken": "^9.0.7",
|
|
31
|
-
"@types/crypto-js": "^4.1.2",
|
|
32
|
-
"@types/dotenv": "^8.2.0",
|
|
33
|
-
"@types/express": "^4.17.17",
|
|
34
|
-
"@types/express-validator": "^3.0.0",
|
|
35
|
-
"@types/js-yaml": "^4.0.9",
|
|
36
|
-
"@types/mongodb": "^4.0.7",
|
|
37
|
-
"@types/ms": "^2.1.0",
|
|
38
|
-
"@types/node": "^20.4.2",
|
|
39
|
-
"@types/passport": "^1.0.16",
|
|
40
|
-
"@types/passport-google-oauth20": "^2.0.14",
|
|
41
|
-
"@types/passport-github": "^1.1.12",
|
|
42
|
-
"@types/sequelize": "^4.28.15",
|
|
43
|
-
"@types/swagger-ui-express": "^4.1.6",
|
|
44
|
-
"@types/ws": "^8.5.5",
|
|
45
|
-
"nodemon": "^2.0.22",
|
|
46
|
-
"strip-json-comments": "^5.0.1",
|
|
47
|
-
"ts-node": "^10.9.1",
|
|
48
|
-
"typescript": "^5.1.6"
|
|
49
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "index.js",
|
|
3
|
+
"scripts": {
|
|
4
|
+
"build": "tsc -p . && node scripts/build.js",
|
|
5
|
+
"start": "node dist/server.js",
|
|
6
|
+
"dev": "nodemon --watch src --exec ts-node src/server.ts",
|
|
7
|
+
"docker-build": "docker build -t very-express .",
|
|
8
|
+
"docker-start": "docker run -p 3000:3000 very-express"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"cookie": "^0.6.0",
|
|
12
|
+
"cookie-parser": "^1.4.6",
|
|
13
|
+
"dotenv": "^16.4.4",
|
|
14
|
+
"express": "^4.18.2",
|
|
15
|
+
"express-validator": "^7.0.1",
|
|
16
|
+
"helmet": "^7.1.0",
|
|
17
|
+
"js-yaml": "^4.1.0",
|
|
18
|
+
"jsonwebtoken": "^9.0.2",
|
|
19
|
+
"mongo-ts-querystring": "^1.0.4",
|
|
20
|
+
"mongodb": "^5.6.0",
|
|
21
|
+
"mongoose": "^7.4.0",
|
|
22
|
+
"passport": "^0.7.0",
|
|
23
|
+
"passport-google-oauth20": "^2.0.0",
|
|
24
|
+
"passport-github": "^1.1.0",
|
|
25
|
+
"passport-jwt": "^4.0.1",
|
|
26
|
+
"swagger-ui-express": "^5.0.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/cookie-parser": "^1.4.7",
|
|
30
|
+
"@types/jsonwebtoken": "^9.0.7",
|
|
31
|
+
"@types/crypto-js": "^4.1.2",
|
|
32
|
+
"@types/dotenv": "^8.2.0",
|
|
33
|
+
"@types/express": "^4.17.17",
|
|
34
|
+
"@types/express-validator": "^3.0.0",
|
|
35
|
+
"@types/js-yaml": "^4.0.9",
|
|
36
|
+
"@types/mongodb": "^4.0.7",
|
|
37
|
+
"@types/ms": "^2.1.0",
|
|
38
|
+
"@types/node": "^20.4.2",
|
|
39
|
+
"@types/passport": "^1.0.16",
|
|
40
|
+
"@types/passport-google-oauth20": "^2.0.14",
|
|
41
|
+
"@types/passport-github": "^1.1.12",
|
|
42
|
+
"@types/sequelize": "^4.28.15",
|
|
43
|
+
"@types/swagger-ui-express": "^4.1.6",
|
|
44
|
+
"@types/ws": "^8.5.5",
|
|
45
|
+
"nodemon": "^2.0.22",
|
|
46
|
+
"strip-json-comments": "^5.0.1",
|
|
47
|
+
"ts-node": "^10.9.1",
|
|
48
|
+
"typescript": "^5.1.6"
|
|
49
|
+
}
|
|
50
50
|
}
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"x-documentConfig": {
|
|
4
|
-
"methods": [
|
|
5
|
-
"get",
|
|
6
|
-
"getList",
|
|
7
|
-
"post",
|
|
8
|
-
"patch"
|
|
9
|
-
],
|
|
10
|
-
"documentName": "User"
|
|
11
|
-
},
|
|
12
|
-
"properties": {
|
|
13
|
-
"_id": {
|
|
14
|
-
"type": "string",
|
|
15
|
-
"x-format": "ObjectId",
|
|
16
|
-
"index": true
|
|
17
|
-
},
|
|
18
|
-
"authProfiles": {
|
|
19
|
-
"type": "array",
|
|
20
|
-
"items": {
|
|
21
|
-
"type": "object",
|
|
22
|
-
"properties": {
|
|
23
|
-
"provider": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"index": true
|
|
26
|
-
},
|
|
27
|
-
"authId": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"index": true
|
|
30
|
-
},
|
|
31
|
-
"username": {
|
|
32
|
-
"type": "string"
|
|
33
|
-
},
|
|
34
|
-
"password": {
|
|
35
|
-
"type": "string"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"required": []
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"email": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"format": "email",
|
|
44
|
-
"index": true
|
|
45
|
-
},
|
|
46
|
-
"name": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"maxLength": 64,
|
|
49
|
-
"required": true
|
|
50
|
-
},
|
|
51
|
-
"active": {
|
|
52
|
-
"type": "boolean",
|
|
53
|
-
"default": true,
|
|
54
|
-
"required": true
|
|
55
|
-
},
|
|
56
|
-
"locale": {
|
|
57
|
-
"type": "string",
|
|
58
|
-
"maxLength": 8
|
|
59
|
-
},
|
|
60
|
-
"roles": {
|
|
61
|
-
"type": "array",
|
|
62
|
-
"x-vexData": "role",
|
|
63
|
-
"items": {
|
|
64
|
-
"type": "string",
|
|
65
|
-
"enum": [
|
|
66
|
-
"visitor",
|
|
67
|
-
"member",
|
|
68
|
-
"admin"
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
"default": [
|
|
72
|
-
"visitor"
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
"profileErrors": {
|
|
76
|
-
"type": "array",
|
|
77
|
-
"items": {
|
|
78
|
-
"type": "string"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"required": [
|
|
83
|
-
"name",
|
|
84
|
-
"active"
|
|
85
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"x-documentConfig": {
|
|
4
|
+
"methods": [
|
|
5
|
+
"get",
|
|
6
|
+
"getList",
|
|
7
|
+
"post",
|
|
8
|
+
"patch"
|
|
9
|
+
],
|
|
10
|
+
"documentName": "User"
|
|
11
|
+
},
|
|
12
|
+
"properties": {
|
|
13
|
+
"_id": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"x-format": "ObjectId",
|
|
16
|
+
"index": true
|
|
17
|
+
},
|
|
18
|
+
"authProfiles": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"provider": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"index": true
|
|
26
|
+
},
|
|
27
|
+
"authId": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"index": true
|
|
30
|
+
},
|
|
31
|
+
"username": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"password": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"required": []
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"email": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"format": "email",
|
|
44
|
+
"index": true
|
|
45
|
+
},
|
|
46
|
+
"name": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"maxLength": 64,
|
|
49
|
+
"required": true
|
|
50
|
+
},
|
|
51
|
+
"active": {
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"default": true,
|
|
54
|
+
"required": true
|
|
55
|
+
},
|
|
56
|
+
"locale": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"maxLength": 8
|
|
59
|
+
},
|
|
60
|
+
"roles": {
|
|
61
|
+
"type": "array",
|
|
62
|
+
"x-vexData": "role",
|
|
63
|
+
"items": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"enum": [
|
|
66
|
+
"visitor",
|
|
67
|
+
"member",
|
|
68
|
+
"admin"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"default": [
|
|
72
|
+
"visitor"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"profileErrors": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"items": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": [
|
|
83
|
+
"name",
|
|
84
|
+
"active"
|
|
85
|
+
]
|
|
86
86
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
pre {
|
|
3
|
-
background-color: #f4f4f4;
|
|
4
|
-
padding: 20px;
|
|
5
|
-
overflow: auto;
|
|
6
|
-
border: 1px solid #ccc;
|
|
7
|
-
white-space: pre-wrap;
|
|
1
|
+
|
|
2
|
+
pre {
|
|
3
|
+
background-color: #f4f4f4;
|
|
4
|
+
padding: 20px;
|
|
5
|
+
overflow: auto;
|
|
6
|
+
border: 1px solid #ccc;
|
|
7
|
+
white-space: pre-wrap;
|
|
8
8
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
document.addEventListener("DOMContentLoaded", function() {
|
|
3
|
-
console.log('Exchange Tokens from /auth/token');
|
|
4
|
-
let sessionCode = new URLSearchParams(location.search).get('code');
|
|
5
|
-
fetch(
|
|
6
|
-
'/auth/token?code=' + sessionCode, {
|
|
7
|
-
method: 'POST'
|
|
8
|
-
}
|
|
9
|
-
)
|
|
10
|
-
.then((res) => res.text())
|
|
11
|
-
.then((data) => {
|
|
12
|
-
const jsonData = JSON.parse(data);
|
|
13
|
-
document.querySelector("#tokenData").innerHTML = JSON.stringify(jsonData, null, 2);
|
|
14
|
-
localStorage.setItem('accessToken', jsonData.result.accessToken);
|
|
15
|
-
localStorage.setItem('accessTokenIndex', jsonData.result.accessTokenIndex);
|
|
16
|
-
localStorage.setItem('refreshToken', jsonData.result.refreshToken);
|
|
17
|
-
localStorage.setItem('refreshTokenIndex', jsonData.result.refreshTokenIndex);
|
|
18
|
-
});
|
|
1
|
+
|
|
2
|
+
document.addEventListener("DOMContentLoaded", function() {
|
|
3
|
+
console.log('Exchange Tokens from /auth/token');
|
|
4
|
+
let sessionCode = new URLSearchParams(location.search).get('code');
|
|
5
|
+
fetch(
|
|
6
|
+
'/auth/token?code=' + sessionCode, {
|
|
7
|
+
method: 'POST'
|
|
8
|
+
}
|
|
9
|
+
)
|
|
10
|
+
.then((res) => res.text())
|
|
11
|
+
.then((data) => {
|
|
12
|
+
const jsonData = JSON.parse(data);
|
|
13
|
+
document.querySelector("#tokenData").innerHTML = JSON.stringify(jsonData, null, 2);
|
|
14
|
+
localStorage.setItem('accessToken', jsonData.result.accessToken);
|
|
15
|
+
localStorage.setItem('accessTokenIndex', jsonData.result.accessTokenIndex);
|
|
16
|
+
localStorage.setItem('refreshToken', jsonData.result.refreshToken);
|
|
17
|
+
localStorage.setItem('refreshTokenIndex', jsonData.result.refreshTokenIndex);
|
|
18
|
+
});
|
|
19
19
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
let jsonData = {};
|
|
2
|
-
|
|
3
|
-
document.addEventListener("DOMContentLoaded", function () {
|
|
4
|
-
jsonData = {
|
|
5
|
-
accessToken: localStorage.getItem("accessToken"),
|
|
6
|
-
accessTokenIndex: localStorage.getItem("accessTokenIndex"),
|
|
7
|
-
refreshToken: localStorage.getItem("refreshToken"),
|
|
8
|
-
refreshTokenIndex: localStorage.getItem("refreshTokenIndex"),
|
|
9
|
-
};
|
|
10
|
-
document.querySelector("#tokenData").innerHTML = JSON.stringify(jsonData, null, 2);
|
|
1
|
+
let jsonData = {};
|
|
2
|
+
|
|
3
|
+
document.addEventListener("DOMContentLoaded", function () {
|
|
4
|
+
jsonData = {
|
|
5
|
+
accessToken: localStorage.getItem("accessToken"),
|
|
6
|
+
accessTokenIndex: localStorage.getItem("accessTokenIndex"),
|
|
7
|
+
refreshToken: localStorage.getItem("refreshToken"),
|
|
8
|
+
refreshTokenIndex: localStorage.getItem("refreshTokenIndex"),
|
|
9
|
+
};
|
|
10
|
+
document.querySelector("#tokenData").innerHTML = JSON.stringify(jsonData, null, 2);
|
|
11
11
|
});
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
document.addEventListener("DOMContentLoaded", function () {
|
|
2
|
-
jsonPayload = {
|
|
3
|
-
refreshToken: localStorage.getItem("refreshToken"),
|
|
4
|
-
refreshTokenIndex: localStorage.getItem("refreshTokenIndex"),
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
fetch("/auth/refresh", {
|
|
8
|
-
method: "POST",
|
|
9
|
-
body: JSON.stringify(jsonPayload),
|
|
10
|
-
headers: {
|
|
11
|
-
"Content-Type": "application/json",
|
|
12
|
-
"Accept": "application/json",
|
|
13
|
-
"Authorization": "Bearer " + localStorage.getItem("accessToken"),
|
|
14
|
-
"X-Auth-Index": localStorage.getItem("accessTokenIndex")
|
|
15
|
-
}
|
|
16
|
-
})
|
|
17
|
-
.then(res => res.json())
|
|
18
|
-
.then((response) => {
|
|
19
|
-
localStorage.setItem("accessToken", response.accessToken);
|
|
20
|
-
localStorage.setItem("accessTokenIndex", response.accessTokenIndex);
|
|
21
|
-
document.querySelector("#tokenData").innerHTML = JSON.stringify(response, null, 2);
|
|
22
|
-
});
|
|
1
|
+
document.addEventListener("DOMContentLoaded", function () {
|
|
2
|
+
jsonPayload = {
|
|
3
|
+
refreshToken: localStorage.getItem("refreshToken"),
|
|
4
|
+
refreshTokenIndex: localStorage.getItem("refreshTokenIndex"),
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
fetch("/auth/refresh", {
|
|
8
|
+
method: "POST",
|
|
9
|
+
body: JSON.stringify(jsonPayload),
|
|
10
|
+
headers: {
|
|
11
|
+
"Content-Type": "application/json",
|
|
12
|
+
"Accept": "application/json",
|
|
13
|
+
"Authorization": "Bearer " + localStorage.getItem("accessToken"),
|
|
14
|
+
"X-Auth-Index": localStorage.getItem("accessTokenIndex")
|
|
15
|
+
}
|
|
16
|
+
})
|
|
17
|
+
.then(res => res.json())
|
|
18
|
+
.then((response) => {
|
|
19
|
+
localStorage.setItem("accessToken", response.accessToken);
|
|
20
|
+
localStorage.setItem("accessTokenIndex", response.accessTokenIndex);
|
|
21
|
+
document.querySelector("#tokenData").innerHTML = JSON.stringify(response, null, 2);
|
|
22
|
+
});
|
|
23
23
|
});
|
package/docs/ForeignKey.md
CHANGED
|
File without changes
|
|
File without changes
|
package/docs/developmentNote.md
CHANGED
|
File without changes
|
|
File without changes
|
package/docs/roadMap/released.md
CHANGED
|
File without changes
|
package/docs/roadMap/v0-6-0.md
CHANGED
|
File without changes
|
package/docs/roadMap/v0-7-0.md
CHANGED
|
File without changes
|
package/docs/vexJsonSchema.md
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "very-express",
|
|
3
|
-
"version": "0.5.
|
|
4
|
-
"description": "based on json schema and openapi, generate Express RestApi server with mongoDb ",
|
|
5
|
-
"author": "Justin26l",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"main": "index.js",
|
|
8
|
-
"bin": {
|
|
9
|
-
"vex": "./dist/index.js"
|
|
10
|
-
},
|
|
11
|
-
"scripts": {
|
|
12
|
-
"start": "node ./dist/index.js",
|
|
13
|
-
"dev": "npm run compile && npm run start",
|
|
14
|
-
"build": "npm run lint && npm run compile",
|
|
15
|
-
"lint": "eslint ./src --ext .ts --fix",
|
|
16
|
-
"compile": "node ./scripts/build.js && node ./scripts/copyTsTemplates.js"
|
|
17
|
-
},
|
|
18
|
-
"keywords": [
|
|
19
|
-
"jsonSchema",
|
|
20
|
-
"express",
|
|
21
|
-
"RestApi",
|
|
22
|
-
"mongoDb",
|
|
23
|
-
"mongoose",
|
|
24
|
-
"json2mongoose"
|
|
25
|
-
],
|
|
26
|
-
"repository": {
|
|
27
|
-
"type": "git",
|
|
28
|
-
"url": "git+https://github.com/Justin26l/VeryExpress.git"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@types/js-yaml": "^4.0.9",
|
|
32
|
-
"@types/minimist": "^1.2.5",
|
|
33
|
-
"@types/ms": "^2.1.0",
|
|
34
|
-
"@types/node": "^20.10.5",
|
|
35
|
-
"@types/passport": "^1.0.16",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
|
37
|
-
"@typescript-eslint/parser": "^6.18.1",
|
|
38
|
-
"diff-match-patch": "^1.0.5",
|
|
39
|
-
"dotenv": "^16.3.1",
|
|
40
|
-
"esbuild": "0.23.0",
|
|
41
|
-
"eslint": "^8.57.1",
|
|
42
|
-
"js-yaml": "^4.1.0",
|
|
43
|
-
"json-schema-to-openapi-schema": "^0.4.0",
|
|
44
|
-
"json-schema-to-typescript": "^13.1.1",
|
|
45
|
-
"json2mongoose": "^0.4.8",
|
|
46
|
-
"minimist": "^1.2.8",
|
|
47
|
-
"mongoose": "^8.7.1",
|
|
48
|
-
"ts-node": "^10.9.2",
|
|
49
|
-
"typescript": "^5.3.3"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "very-express",
|
|
3
|
+
"version": "0.5.16",
|
|
4
|
+
"description": "based on json schema and openapi, generate Express RestApi server with mongoDb ",
|
|
5
|
+
"author": "Justin26l",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"bin": {
|
|
9
|
+
"vex": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"start": "node ./dist/index.js",
|
|
13
|
+
"dev": "npm run compile && npm run start",
|
|
14
|
+
"build": "npm run lint && npm run compile",
|
|
15
|
+
"lint": "eslint ./src --ext .ts --fix",
|
|
16
|
+
"compile": "node ./scripts/build.js && node ./scripts/copyTsTemplates.js"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"jsonSchema",
|
|
20
|
+
"express",
|
|
21
|
+
"RestApi",
|
|
22
|
+
"mongoDb",
|
|
23
|
+
"mongoose",
|
|
24
|
+
"json2mongoose"
|
|
25
|
+
],
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/Justin26l/VeryExpress.git"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/js-yaml": "^4.0.9",
|
|
32
|
+
"@types/minimist": "^1.2.5",
|
|
33
|
+
"@types/ms": "^2.1.0",
|
|
34
|
+
"@types/node": "^20.10.5",
|
|
35
|
+
"@types/passport": "^1.0.16",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
|
37
|
+
"@typescript-eslint/parser": "^6.18.1",
|
|
38
|
+
"diff-match-patch": "^1.0.5",
|
|
39
|
+
"dotenv": "^16.3.1",
|
|
40
|
+
"esbuild": "0.23.0",
|
|
41
|
+
"eslint": "^8.57.1",
|
|
42
|
+
"js-yaml": "^4.1.0",
|
|
43
|
+
"json-schema-to-openapi-schema": "^0.4.0",
|
|
44
|
+
"json-schema-to-typescript": "^13.1.1",
|
|
45
|
+
"json2mongoose": "^0.4.8",
|
|
46
|
+
"minimist": "^1.2.8",
|
|
47
|
+
"mongoose": "^8.7.1",
|
|
48
|
+
"ts-node": "^10.9.2",
|
|
49
|
+
"typescript": "^5.3.3"
|
|
50
|
+
}
|
|
51
|
+
}
|
package/scripts/build.js
CHANGED
|
File without changes
|
|
File without changes
|
package/scripts/merge.js
CHANGED
|
File without changes
|