Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Latest commit

 

History

History
31 lines (19 loc) · 620 Bytes

model.rst

File metadata and controls

31 lines (19 loc) · 620 Bytes

Mongoose model and API sub-generator

Generate a mongoose document model with API endpoints.

Execute

The sub-generator is invoked with:

yo makrina:model

The sub-generator is also invoked by the main generator.

Description

It creates:

  • A mongoose document model
  • An express route with API endpoints and basic CRUD

Prompts

The generator asks the object details, which are similar to the angular core service prompts that have been used in the respective generator.