Skip to main content

🛠️ Generating Files

In the following chapters, you'll learn how to create controllers, RESTful classes, models, repositories, and output files. These can be created manually or using Generator Z.

⚙️ Generator Z

Generator Z is a VS Code extension that simplifies file generation. It's a powerful tool that allows you to generate files with a single click.

It supports generating various types of files, including Warlock files, React Components, Next.js Components, and many other frameworks.

📥 Installation

Click on Generator Z to install it on VS Code.

📄 Available File Types

You can generate the following types of files using Generator Z:

  • Module: Generates an entire module with all necessary files.
  • Controller: Generates a controller file, also known as a Handler.
  • Controller With Validation: Generates a controller file with validation.
  • RESTful Class: Generates a RESTful class file.
  • Routes: Generates a routes file.
  • Model: Generates a model file.
  • Repository: Generates a repository file.
  • Output: Generates an output file.
  • Locales: Generates a locales file inside the utils directory.