You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ Try it!! We are happy to hear your feedback or any kind of new features.
35
35
-**Easy Exception Handling** with our own simple and easy to adopt logic. You will love it.
36
36
-**Easy Data Seeding** with our own factories.
37
37
-**Custom Commands** are also available in our setup and really easy to use or even extend.
38
+
-**Custom Validators** to validate your request even better and stricter. [custom-validation-classes](https://github.com/pleerock/class-validator#custom-validation-classes)
38
39
-**Scaffolding Commands** will speed up your development tremendously as you should focus on business code and not scaffolding.
39
40
-**Smart Validation** thanks to [class-validator](https://github.com/pleerock/class-validator) with some nice annotations.
40
41
-**API Documentation** thanks to [swagger](http://swagger.io/).
@@ -152,7 +153,7 @@ All script are defined in the package.json file, but the most important ones are
152
153
* There is also a vscode task for this called `lint`.
153
154
154
155
### Tests
155
-
* Run the unit tests using `npm test` (There is also a vscode task for this called `test`).
156
+
* Run the unit tests using `nps test` (There is also a vscode task for this called `test`).
156
157
* Run the e2e tests using `nps test:e2e` and don't forget to start your application and your [Auth0 Mock Server](https://github.com/hirsch88/auth0-mock-server).
157
158
158
159
### Running in dev mode
@@ -185,6 +186,7 @@ All the templates for the commands are located in `src/console/templates`.
185
186
*`npm run console make:request <file>` - Generates a basic request.
186
187
*`npm run console make:listener <file>` - Generates a basic listener.
187
188
*`npm run console make:exception <file>` - Generates a basic exception.
189
+
*`npm run console make:validator <file>` - Generates a custom validator.
188
190
*`npm run console update:targets <file>` - Reads all the API files and generate a new `constants/Targets.ts` file out of it.
189
191
190
192
**Example**
@@ -230,6 +232,7 @@ The route prefix is `/api` by default, but you can change this in the .env file.
230
232
|**src/api/repositories/**| Repository / DB layer |
231
233
|**src/api/requests/**| Request bodys with validations |
232
234
|**src/api/services/**| Service layer |
235
+
|**src/api/validators/**| Custom validators, which can be used in the request classes |
0 commit comments