Silk
CLI tool for Tayar boilerplate
Getting Started
Install Silk CLI globally
npm i @sikka/silk -g
Use Silk anywhere you want
silk --help
Commands
List Models
This command will list all the models in the backend/models
directory.
silk list-models
Generate Models
Must be inside backend folder
This command will parse the backend/data/models.json
file and create the models accordingly.
silk generate-models
Generate Portals
Must be inside frontend folder
This command will create a new next application inside the frontend folder and update it to turn it into a portal similar to the default portal admin-portal.
silk generate-portal
Generate Pages
Must be inside frontend/[portal-name] folder
This command will generate the pages needed in the frontend/[portal-name]
for the specified model
silk generate-pages <model-name>