Skip to main content
Version: Next

Best Practices

For better organization, it is recommended to create a rules directory within the src directory. In this directory, create separate files for each set of rules, naming them according to the request they validate.

Example Directory Structure

src/
├── rules/
│ ├── user-registration.rules.js
│ ├── login.rules.js
│ └── profile-update.rules.js