very-express 0.5.21 → 0.5.23
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/dist/index.js +33 -33
- package/dist/templates/_roles/_RoleFactory.ts +2 -2
- package/dist/templates/root/README.md +11 -10
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// {{headerComment}}
|
|
2
|
-
export type accessAction = "create" | "read" | "update" | "delete";
|
|
3
|
-
export const accessActionArr: accessAction[] = ["create", "read", "update", "delete"];
|
|
2
|
+
export type accessAction = "create" | "read" | "search" | "update" | "delete";
|
|
3
|
+
export const accessActionArr: accessAction[] = ["create", "read", "search", "update", "delete"];
|
|
4
4
|
|
|
5
5
|
export interface accessControl< T = accessAction > {
|
|
6
6
|
[key:string]: T[]
|
|
@@ -2,24 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
# Quick Start
|
|
5
|
+
1. install `very-express` from npm
|
|
6
|
+
`npm install -g very-express` or `npm update -g very-express`
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
[vex.config.json](./vex.config.json)
|
|
8
|
-
|
|
9
|
-
2. generate the app with your vex.config settings.
|
|
10
|
-
*Note : every db schema changes require to regenerate app.
|
|
8
|
+
2. check configuration file [vex.config.json](./vex.config.json) under project root directory and keep it updated (re-generate the app with very-express).
|
|
11
9
|
`vex`
|
|
12
|
-
|
|
10
|
+
|
|
11
|
+
3. we should have a express typescript app.
|
|
13
12
|
```
|
|
14
13
|
├── src/
|
|
15
|
-
│ └──
|
|
14
|
+
│ └── openapi
|
|
15
|
+
│ └── roles (role based access control settings)
|
|
16
|
+
│ └── system (very express generated app)
|
|
16
17
|
├── package.json
|
|
17
18
|
├── tsconfig.json
|
|
18
19
|
├── vex.config.json
|
|
19
20
|
├── .env
|
|
20
21
|
└── ...
|
|
21
22
|
```
|
|
22
|
-
|
|
23
|
+
|
|
23
24
|
4. start the generated express app.
|
|
24
25
|
```
|
|
25
26
|
npm i
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
npm run docker-build
|
|
33
34
|
npm run docker-start
|
|
34
35
|
```
|
|
36
|
+
|
|
35
37
|
# Resource
|
|
36
38
|
- [Documents](https://github.com/Justin26l/VeryExpress/blob/main/README.md)
|
|
37
|
-
|
|
38
|
-
- [Discord](https://discord.gg/PZGMzDp7)
|
|
39
|
+
- [VeryExpress Discord](https://discord.gg/PZGMzDp7)
|