-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jose Tomas Hernandez Lopez
committed
Jan 31, 2024
1 parent
7281ca0
commit 95ba2d3
Showing
40 changed files
with
159 additions
and
173 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,37 @@ | ||
# schematics | ||
# devon4ts_node | ||
|
||
This library was generated with [Nx](https://nx.dev). | ||
[devonfw](https://www.devonfw.com/) is a platform which provides solutions to building business applications which combine best-in-class frameworks and libraries as well as industry proven practices and code conventions. devonfw is 100% Open Source (Apache License version 2.0) since the beginning of 2018. | ||
|
||
## Building | ||
devon4ts_node is the NodeJS stack of devonfw. It allows you to build business applications (backends) using NodeJS technology in standardized way based on established best-practices. | ||
|
||
Run `nx build schematics` to build the library. | ||
![License](https://img.shields.io/npm/l/@devon4ts_node/schematics) | ||
![License](https://img.shields.io/npm/v/@devon4ts_node/schematics) | ||
![License](https://img.shields.io/librariesio/release/npm/@devon4ts_node/schematics) | ||
![License](https://img.shields.io/npm/dt/@devon4ts_node/schematics) | ||
|
||
## Running unit tests | ||
## devon4ts_node Schematics | ||
|
||
Run `nx test schematics` to execute the unit tests via [Jest](https://jestjs.io). | ||
This package contains the devon4ts_node schematics. Those schematics are responsible for generating code for devon4ts_node. | ||
|
||
## Documentation | ||
|
||
You can find all documentation in our [wiki](https://github.com/devonfw/devon4ts_node/wiki). | ||
|
||
## Code of conduct | ||
|
||
Visit [code of conduct document](https://github.com/devonfw/.github/blob/master/CODE_OF_CONDUCT.md). | ||
|
||
## Contributing guide | ||
|
||
Visit [contributing guide document](https://github.com/devonfw/.github/blob/master/CONTRIBUTING.asciidoc). | ||
|
||
## Key Principles | ||
|
||
Visit [key principles document](https://github.com/devonfw/.github/blob/master/key-principles.asciidoc). | ||
|
||
## Samples | ||
|
||
- [Employee example](https://github.com/devonfw-sample/devon4ts_node-samples/tree/develop/employee): simple backend example for a employee management application. | ||
- [Components example](https://github.com/devonfw-sample/devon4ts_node/tree/develop/components-example): simple backend example which will show you the execution order of the devon4ts_node components. | ||
- [GraphQL example](https://github.com/devonfw-sample/devon4ts_node/tree/develop/graphql): simple GraphQL example with starter configuration. | ||
- [My Thai Star](https://github.com/devonfw/my-thai-star/tree/develop/node): realistic example about the management of a restaurant. This example has also a frontend and it is compatible with other devonfw stacks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json", | ||
"extends": "@nestjs/schematics", | ||
"schematics": { | ||
"application": { | ||
"description": "Create a devon4ts_node application.", | ||
"factory": "./generators/devon4ts_node-application/devon4ts_node-application.factory#devon4ts_nodeApplication", | ||
"schema": "./generators/devon4ts_node-application/schema.json" | ||
}, | ||
"typeorm": { | ||
"description": "Initialice typeorm into your current project in a correct way.", | ||
"factory": "./generators/init-typeorm/init-typeorm.factory#initTypeorm", | ||
"schema": "./generators/init-typeorm/schema.json" | ||
}, | ||
"entity": { | ||
"description": "Add a TypeOrm entity to your project", | ||
"factory": "./generators/entity/entity.factory#main", | ||
"schema": "./generators/entity/schema.json" | ||
}, | ||
"convict": { | ||
"description": "Initialize convict to manage the configuration into the project.", | ||
"factory": "./generators/convict/convict.factory#initConvict", | ||
"schema": "./generators/convict/schema.json" | ||
}, | ||
"mailer": { | ||
"description": "Add @devon4ts_node/mailer module to project.", | ||
"factory": "./generators/mailer/mailer.factory#mailer", | ||
"schema": "./generators/mailer/schema.json" | ||
}, | ||
"swagger": { | ||
"description": "Add swagger module to project.", | ||
"factory": "./generators/swagger/swagger.factory#swagger", | ||
"schema": "./generators/swagger/schema.json" | ||
}, | ||
"auth-jwt": { | ||
"description": "Add the auth JWT module to the project.", | ||
"factory": "./generators/auth-jwt/auth.factory#authJWT", | ||
"schema": "./generators/auth-jwt/schema.json" | ||
}, | ||
"security": { | ||
"description": "Add cors and helmet to your project.", | ||
"factory": "./generators/security/security.factory#security", | ||
"schema": "./generators/security/schema.json" | ||
}, | ||
"repository": { | ||
"factory": "./generators/repository/repository.factory#main", | ||
"description": "Create a TypeORM custom repository.", | ||
"schema": "./generators/repository/schema.json" | ||
}, | ||
"controller": { | ||
"factory": "./generators/controller/controller.factory#main", | ||
"description": "Create a Nest controller.", | ||
"schema": "./generators/controller/schema.json" | ||
}, | ||
"module": { | ||
"factory": "./generators/module/module.factory#main", | ||
"description": "Create a Nest module.", | ||
"schema": "./generators/module/schema.json" | ||
}, | ||
"service": { | ||
"factory": "./generators/service/service.factory#main", | ||
"description": "Create a Nest service.", | ||
"schema": "./generators/service/schema.json" | ||
}, | ||
"filter": { | ||
"factory": "./generators/filter/filter.factory#main", | ||
"description": "Create a Nest filter.", | ||
"schema": "./generators/filter/schema.json" | ||
}, | ||
"guard": { | ||
"factory": "./generators/guard/guard.factory#main", | ||
"description": "Create a Nest guard.", | ||
"schema": "./generators/guard/schema.json" | ||
}, | ||
"interceptor": { | ||
"factory": "./generators/interceptor/interceptor.factory#main", | ||
"description": "Create a Nest interceptor.", | ||
"schema": "./generators/interceptor/schema.json" | ||
}, | ||
"middleware": { | ||
"factory": "./generators/middleware/middleware.factory#main", | ||
"description": "Create a Nest middleware.", | ||
"schema": "./generators/middleware/schema.json" | ||
}, | ||
"pipe": { | ||
"factory": "./generators/pipe/pipe.factory#main", | ||
"description": "Create a Nest pipe.", | ||
"schema": "./generators/pipe/schema.json" | ||
}, | ||
"resource": { | ||
"factory": "./generators/resource/resource.factory#main", | ||
"description": "Create a Nest resource.", | ||
"schema": "./generators/resource/schema.json" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletions
9
packages/schematics/src/generators/auth-jwt/files/core/auth/services/auth.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
packages/schematics/src/generators/auth-jwt/files/core/user/model/entities/user.entity.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/schematics/src/generators/auth-jwt/files/test/user/user.repository.mock.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
packages/schematics/src/generators/controller/generator.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.