@simitgroup/simpleapp-generator 1.0.16 → 1.0.20
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 +28 -18
- 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 +69 -0
- package/backend1/pnpm-lock.yaml +5208 -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/main.js +10 -0
- package/backend1/src/main.js.map +1 -0
- package/backend1/src/main.ts +8 -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 +21 -0
- package/definations/category.cat.jsonschema.json +1 -0
- package/definations/product.prd.jsonschema.json +40 -0
- package/dist/createproject.js +13 -3
- package/dist/createproject.js.map +1 -1
- package/dist/generate.js +3 -3
- package/dist/generate.js.map +1 -1
- package/dist/index.js +36 -51
- 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/processors/jsonschemabuilder.js +1 -1
- package/dist/processors/jsonschemabuilder.js.map +1 -1
- package/dist/validation.js +2 -0
- package/dist/validation.js.map +1 -0
- package/openapitools.json +0 -0
- package/package.json +5 -1
- package/sampleconfig.json +2 -2
- package/src/createproject.ts +17 -4
- package/src/generate.ts +3 -3
- package/src/index.ts +56 -60
- 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/processors/jsonschemabuilder.ts +1 -1
- package/src/validation.ts +0 -0
- package/templates/SimpleAppService.eta +3 -0
- package/templates/basic/pageindex.vue.eta +13 -9
- package/templates/nuxt/components.crudsimple.vue.eta +24 -7
- package/templates/nuxt/nuxt.config.ts.eta +6 -0
- package/templates/nuxt/plugins.simpleapp.ts.eta +8 -3
- package/tsconfig.json +1 -1
- package/dist/app.module.ts +0 -14
package/README.md
CHANGED
|
@@ -12,38 +12,48 @@ 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
|
+
|
|
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
|
|
26
|
+
18.keep audit trail into db
|
|
27
|
+
10.add backend find options
|
|
28
|
+
10.add frontend find options
|
|
29
|
+
11.retain modifications of controller, service, apiclients
|
|
30
|
+
14.add permission control
|
|
31
|
+
16.access right
|
|
32
|
+
17.setting of tenants
|
|
33
|
+
|
|
34
|
+
authentication in nuxt
|
|
35
|
+
jwt in backend
|
|
36
|
+
|
|
37
|
+
|
|
15
38
|
9. beautify default tailwind ui
|
|
16
39
|
1. front page
|
|
17
40
|
2. top bar
|
|
18
41
|
3. menu bars
|
|
19
42
|
4. default with of each component is it nicely fit
|
|
20
|
-
5. table layout
|
|
21
|
-
6. error messages
|
|
43
|
+
5. table layout
|
|
22
44
|
7. error formating
|
|
23
|
-
7. load backend tsconfig and add more property: **
|
|
24
|
-
8. add prettier formating option for frontend
|
|
25
45
|
9. write proper user guide
|
|
26
|
-
10.add find options
|
|
27
|
-
11.retain modifications of controller, service, apiclients
|
|
28
|
-
12.add find records
|
|
29
46
|
13.add workflow functions
|
|
30
|
-
14.add permission control
|
|
31
|
-
16.access right
|
|
32
|
-
17.setting of tenants
|
|
33
|
-
18.keep audit trail into db
|
|
34
|
-
19.function of remain menulist
|
|
35
|
-
20.security of string input, block xss
|
|
36
|
-
21.control csrf
|
|
37
47
|
|
|
38
48
|
|
|
39
|
-
10.plugin for ajv
|
|
40
|
-
long string format for description
|
|
41
|
-
errors formating
|
|
42
|
-
|
|
43
49
|
|
|
50
|
+
hold
|
|
44
51
|
|
|
52
|
+
10.plugin for ajv
|
|
53
|
+
long string format for description
|
|
45
54
|
|
|
46
55
|
# Todo
|
|
56
|
+
x21.control csrf
|
|
47
57
|
x8. simpleapp generate currentfolder error **
|
|
48
58
|
x1. override app.vue *
|
|
49
59
|
x2. create layout
|
|
@@ -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,69 @@
|
|
|
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/core": "^10.0.0",
|
|
25
|
+
"@nestjs/platform-express": "^10.0.0",
|
|
26
|
+
"reflect-metadata": "^0.1.13",
|
|
27
|
+
"rxjs": "^7.8.1"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@nestjs/cli": "^10.0.0",
|
|
31
|
+
"@nestjs/schematics": "^10.0.0",
|
|
32
|
+
"@nestjs/testing": "^10.0.0",
|
|
33
|
+
"@types/express": "^4.17.17",
|
|
34
|
+
"@types/jest": "^29.5.2",
|
|
35
|
+
"@types/node": "^20.3.1",
|
|
36
|
+
"@types/supertest": "^2.0.12",
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
38
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
39
|
+
"eslint": "^8.42.0",
|
|
40
|
+
"eslint-config-prettier": "^9.0.0",
|
|
41
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
42
|
+
"jest": "^29.5.0",
|
|
43
|
+
"prettier": "^3.0.0",
|
|
44
|
+
"source-map-support": "^0.5.21",
|
|
45
|
+
"supertest": "^6.3.3",
|
|
46
|
+
"ts-jest": "^29.1.0",
|
|
47
|
+
"ts-loader": "^9.4.3",
|
|
48
|
+
"ts-node": "^10.9.1",
|
|
49
|
+
"tsconfig-paths": "^4.2.0",
|
|
50
|
+
"typescript": "^5.1.3"
|
|
51
|
+
},
|
|
52
|
+
"jest": {
|
|
53
|
+
"moduleFileExtensions": [
|
|
54
|
+
"js",
|
|
55
|
+
"json",
|
|
56
|
+
"ts"
|
|
57
|
+
],
|
|
58
|
+
"rootDir": "src",
|
|
59
|
+
"testRegex": ".*\\.spec\\.ts$",
|
|
60
|
+
"transform": {
|
|
61
|
+
"^.+\\.(t|j)s$": "ts-jest"
|
|
62
|
+
},
|
|
63
|
+
"collectCoverageFrom": [
|
|
64
|
+
"**/*.(t|j)s"
|
|
65
|
+
],
|
|
66
|
+
"coverageDirectory": "../coverage",
|
|
67
|
+
"testEnvironment": "node"
|
|
68
|
+
}
|
|
69
|
+
}
|