@simitgroup/simpleapp-generator 1.0.19 → 1.0.21
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/README.md +13 -10
- package/backend1/.env +5 -0
- package/backend1/.eslintrc.js +25 -0
- package/backend1/.prettierrc +4 -0
- package/backend1/README.md +73 -0
- package/backend1/nest-cli.json +8 -0
- package/backend1/package.json +75 -0
- package/backend1/pnpm-lock.yaml +5459 -0
- package/backend1/src/app.controller.js +71 -0
- package/backend1/src/app.controller.js.map +1 -0
- package/backend1/src/app.controller.spec.js +21 -0
- package/backend1/src/app.controller.spec.js.map +1 -0
- package/backend1/src/app.controller.spec.ts +22 -0
- package/backend1/src/app.controller.ts +12 -0
- package/backend1/src/app.module.js +67 -0
- package/backend1/src/app.module.js.map +1 -0
- package/backend1/src/app.module.ts +10 -0
- package/backend1/src/app.service.js +64 -0
- package/backend1/src/app.service.js.map +1 -0
- package/backend1/src/app.service.ts +8 -0
- package/backend1/src/class/SimpleAppController.js +38 -0
- package/backend1/src/class/SimpleAppController.js.map +1 -0
- package/backend1/src/class/SimpleAppController.ts +69 -0
- package/backend1/src/class/SimpleAppService.js +264 -0
- package/backend1/src/class/SimpleAppService.js.map +1 -0
- package/backend1/src/class/SimpleAppService.ts +213 -0
- package/backend1/src/main.js +22 -0
- package/backend1/src/main.js.map +1 -0
- package/backend1/src/main.ts +20 -0
- package/backend1/test/app.e2e-spec.js +45 -0
- package/backend1/test/app.e2e-spec.js.map +1 -0
- package/backend1/test/app.e2e-spec.ts +24 -0
- package/backend1/test/jest-e2e.json +9 -0
- package/backend1/tsconfig.build.json +4 -0
- package/backend1/tsconfig.json +1 -0
- package/dist/createproject.js +6 -1
- package/dist/createproject.js.map +1 -1
- package/dist/framework.js +161 -0
- package/dist/framework.js.map +1 -0
- package/dist/generate.js +2 -2
- package/dist/generate.js.map +1 -1
- package/dist/index.js +54 -58
- package/dist/index.js.map +1 -1
- package/dist/index2.js +118 -0
- package/dist/index2.js.map +1 -0
- package/dist/installdependency.js +20 -0
- package/dist/installdependency.js.map +1 -0
- package/dist/installnest.js +2 -0
- package/dist/installnest.js.map +1 -0
- package/dist/installnuxt.js +2 -0
- package/dist/installnuxt.js.map +1 -0
- package/dist/validation.js +2 -0
- package/dist/validation.js.map +1 -0
- package/frontend1/README.md +63 -0
- package/frontend1/app.vue +8 -0
- package/frontend1/assets/css/tailwind.css +28 -0
- package/frontend1/components/CrudSimple.vue +112 -0
- package/frontend1/components/DebugDocumentData.vue +20 -0
- package/frontend1/components/EventMonitor.vue +79 -0
- package/frontend1/components/Menus.vue +18 -0
- package/frontend1/layouts/default.vue +10 -0
- package/frontend1/nuxt.config.js +42 -0
- package/frontend1/nuxt.config.js.map +1 -0
- package/frontend1/nuxt.config.ts +42 -0
- package/frontend1/package-lock.json +11877 -0
- package/frontend1/package.json +38 -0
- package/frontend1/pages/index.vue +3 -0
- package/frontend1/plugins/simpleapp.js +73 -0
- package/frontend1/plugins/simpleapp.js.map +1 -0
- package/frontend1/plugins/simpleapp.ts +73 -0
- package/frontend1/pnpm-lock.yaml +8339 -0
- package/frontend1/public/favicon.ico +0 -0
- package/frontend1/server/api/[...].js +117 -0
- package/frontend1/server/api/[...].js.map +1 -0
- package/frontend1/server/api/[...].ts +131 -0
- package/frontend1/server/tsconfig.json +3 -0
- package/frontend1/tailwind.config.js +10 -0
- package/frontend1/tailwind.config.js.map +1 -0
- package/frontend1/tailwind.config.ts +9 -0
- package/frontend1/tsconfig.json +4 -0
- package/openapitools.json +0 -0
- package/package.json +2 -6
- package/sampleconfig.json +2 -2
- package/src/createproject.ts +5 -0
- package/src/framework.ts +133 -0
- package/src/generate.ts +2 -2
- package/src/index.ts +38 -69
- package/src/index2.ts +132 -0
- package/src/installdependency.sh +5 -0
- package/src/installdependency.ts +4 -0
- package/src/installnest.ts +0 -0
- package/src/installnuxt.ts +0 -0
- package/src/validation.ts +0 -0
- package/templates/basic/pageindex.vue.eta +9 -9
- package/templates/nuxt/plugins.simpleapp.ts.eta +3 -3
package/README.md
CHANGED
|
@@ -12,28 +12,29 @@ MONGODB_URL='mongodb://mongoadmin:secret@localhost:27017/admin?authMechanism=DEF
|
|
|
12
12
|
4. regenerate code (for frontend can function completely)
|
|
13
13
|
5.
|
|
14
14
|
|
|
15
|
-
10.plugin for ajv
|
|
16
|
-
long string format for description
|
|
17
|
-
errors formating
|
|
18
15
|
|
|
16
|
+
1. install openapi-generator, pnpm, nest, rename openapi for new setup
|
|
17
|
+
2. load backend tsconfig and add more property: **
|
|
18
|
+
3. add prettier formating option for frontend
|
|
19
|
+
4. error messages
|
|
20
|
+
5. fix single and multi select bugs
|
|
21
|
+
6. function of remain menulist
|
|
22
|
+
7. security of string input, block xss
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
errors formating
|
|
19
26
|
18.keep audit trail into db
|
|
20
|
-
6. error messages
|
|
21
|
-
7. load backend tsconfig and add more property: **
|
|
22
|
-
8. add prettier formating option for frontend
|
|
23
27
|
10.add backend find options
|
|
24
28
|
10.add frontend find options
|
|
25
29
|
11.retain modifications of controller, service, apiclients
|
|
26
30
|
14.add permission control
|
|
27
31
|
16.access right
|
|
28
32
|
17.setting of tenants
|
|
29
|
-
|
|
30
|
-
22. install openapi-generator, pnpm, nest, rename openapi
|
|
31
|
-
20.security of string input, block xss
|
|
33
|
+
|
|
32
34
|
authentication in nuxt
|
|
33
35
|
jwt in backend
|
|
34
36
|
|
|
35
37
|
|
|
36
|
-
|
|
37
38
|
9. beautify default tailwind ui
|
|
38
39
|
1. front page
|
|
39
40
|
2. top bar
|
|
@@ -48,6 +49,8 @@ jwt in backend
|
|
|
48
49
|
|
|
49
50
|
hold
|
|
50
51
|
|
|
52
|
+
10.plugin for ajv
|
|
53
|
+
long string format for description
|
|
51
54
|
|
|
52
55
|
# Todo
|
|
53
56
|
x21.control csrf
|
package/backend1/.env
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
parser: '@typescript-eslint/parser',
|
|
3
|
+
parserOptions: {
|
|
4
|
+
project: 'tsconfig.json',
|
|
5
|
+
tsconfigRootDir: __dirname,
|
|
6
|
+
sourceType: 'module',
|
|
7
|
+
},
|
|
8
|
+
plugins: ['@typescript-eslint/eslint-plugin'],
|
|
9
|
+
extends: [
|
|
10
|
+
'plugin:@typescript-eslint/recommended',
|
|
11
|
+
'plugin:prettier/recommended',
|
|
12
|
+
],
|
|
13
|
+
root: true,
|
|
14
|
+
env: {
|
|
15
|
+
node: true,
|
|
16
|
+
jest: true,
|
|
17
|
+
},
|
|
18
|
+
ignorePatterns: ['.eslintrc.js'],
|
|
19
|
+
rules: {
|
|
20
|
+
'@typescript-eslint/interface-name-prefix': 'off',
|
|
21
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
22
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
23
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
24
|
+
},
|
|
25
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="200" alt="Nest Logo" /></a>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
|
|
6
|
+
[circleci-url]: https://circleci.com/gh/nestjs/nest
|
|
7
|
+
|
|
8
|
+
<p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
|
|
11
|
+
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
|
|
12
|
+
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
|
|
13
|
+
<a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
|
|
14
|
+
<a href="https://coveralls.io/github/nestjs/nest?branch=master" target="_blank"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9" alt="Coverage" /></a>
|
|
15
|
+
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
|
|
16
|
+
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
|
|
17
|
+
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
|
|
18
|
+
<a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
|
|
19
|
+
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
|
|
20
|
+
<a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
|
|
21
|
+
</p>
|
|
22
|
+
<!--[](https://opencollective.com/nest#backer)
|
|
23
|
+
[](https://opencollective.com/nest#sponsor)-->
|
|
24
|
+
|
|
25
|
+
## Description
|
|
26
|
+
|
|
27
|
+
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
$ pnpm install
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Running the app
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# development
|
|
39
|
+
$ pnpm run start
|
|
40
|
+
|
|
41
|
+
# watch mode
|
|
42
|
+
$ pnpm run start:dev
|
|
43
|
+
|
|
44
|
+
# production mode
|
|
45
|
+
$ pnpm run start:prod
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Test
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# unit tests
|
|
52
|
+
$ pnpm run test
|
|
53
|
+
|
|
54
|
+
# e2e tests
|
|
55
|
+
$ pnpm run test:e2e
|
|
56
|
+
|
|
57
|
+
# test coverage
|
|
58
|
+
$ pnpm run test:cov
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Support
|
|
62
|
+
|
|
63
|
+
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
|
|
64
|
+
|
|
65
|
+
## Stay in touch
|
|
66
|
+
|
|
67
|
+
- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
|
|
68
|
+
- Website - [https://nestjs.com](https://nestjs.com/)
|
|
69
|
+
- Twitter - [@nestframework](https://twitter.com/nestframework)
|
|
70
|
+
|
|
71
|
+
## License
|
|
72
|
+
|
|
73
|
+
Nest is [MIT licensed](LICENSE).
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "backend1",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"author": "",
|
|
6
|
+
"private": true,
|
|
7
|
+
"license": "UNLICENSED",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "nest build",
|
|
10
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
11
|
+
"start": "nest start",
|
|
12
|
+
"start:dev": "nest start --watch",
|
|
13
|
+
"start:debug": "nest start --debug --watch",
|
|
14
|
+
"start:prod": "node dist/main",
|
|
15
|
+
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
16
|
+
"test": "jest",
|
|
17
|
+
"test:watch": "jest --watch",
|
|
18
|
+
"test:cov": "jest --coverage",
|
|
19
|
+
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
20
|
+
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@nestjs/common": "^10.0.0",
|
|
24
|
+
"@nestjs/config": "^3.0.1",
|
|
25
|
+
"@nestjs/core": "^10.0.0",
|
|
26
|
+
"@nestjs/mongoose": "^10.0.1",
|
|
27
|
+
"@nestjs/platform-express": "^10.0.0",
|
|
28
|
+
"@nestjs/swagger": "^7.1.10",
|
|
29
|
+
"ajv": "^8.12.0",
|
|
30
|
+
"ajv-formats": "^2.1.1",
|
|
31
|
+
"mongoose": "^7.5.0",
|
|
32
|
+
"reflect-metadata": "^0.1.13",
|
|
33
|
+
"rxjs": "^7.8.1"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@nestjs/cli": "^10.0.0",
|
|
37
|
+
"@nestjs/schematics": "^10.0.0",
|
|
38
|
+
"@nestjs/testing": "^10.0.0",
|
|
39
|
+
"@types/express": "^4.17.17",
|
|
40
|
+
"@types/jest": "^29.5.2",
|
|
41
|
+
"@types/node": "^20.3.1",
|
|
42
|
+
"@types/supertest": "^2.0.12",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
44
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
45
|
+
"eslint": "^8.42.0",
|
|
46
|
+
"eslint-config-prettier": "^9.0.0",
|
|
47
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
48
|
+
"jest": "^29.5.0",
|
|
49
|
+
"prettier": "^3.0.0",
|
|
50
|
+
"source-map-support": "^0.5.21",
|
|
51
|
+
"supertest": "^6.3.3",
|
|
52
|
+
"ts-jest": "^29.1.0",
|
|
53
|
+
"ts-loader": "^9.4.3",
|
|
54
|
+
"ts-node": "^10.9.1",
|
|
55
|
+
"tsconfig-paths": "^4.2.0",
|
|
56
|
+
"typescript": "^5.1.3"
|
|
57
|
+
},
|
|
58
|
+
"jest": {
|
|
59
|
+
"moduleFileExtensions": [
|
|
60
|
+
"js",
|
|
61
|
+
"json",
|
|
62
|
+
"ts"
|
|
63
|
+
],
|
|
64
|
+
"rootDir": "src",
|
|
65
|
+
"testRegex": ".*\\.spec\\.ts$",
|
|
66
|
+
"transform": {
|
|
67
|
+
"^.+\\.(t|j)s$": "ts-jest"
|
|
68
|
+
},
|
|
69
|
+
"collectCoverageFrom": [
|
|
70
|
+
"**/*.(t|j)s"
|
|
71
|
+
],
|
|
72
|
+
"coverageDirectory": "../coverage",
|
|
73
|
+
"testEnvironment": "node"
|
|
74
|
+
}
|
|
75
|
+
}
|