docs

Generator

Using the bun g command, you can generate one or multiple files simultaneously. The available file types are:


Validation

Choose between generating a validation set or a single validation file.

Service

Two options are available for generating service files:

Controller

You can generate controllers for either an API or a Full Stack application.

Factory

Generates a factory file based on the specified model name. You’ll need to define the fields to be included in the factory output.

Test

Creates a test file using Supertest and Bun test frameworks.

Task

Generates a file for periodic tasks using node-cron.

Layout

Creates a layout file using Nunjucks.

Note: The views module must be installed.

View

Generates a view file using Nunjucks.

Note: The views module must be installed.

Summary