seed-builder
v0.9.3
Published
Code generator library
Downloads
321
Readme
Seed Builder
Table of content
Description
Seed-builder is a code generator library to facilitate the creation of boilerplate code required by django & reactjs applications such as model definitions, CRUD automation, server connections and graphql implementations.
Installation
To Install the latest stable version.
npm install -g seed-builder
How to use
To create or update seed-builder autogenerated files
- Install StarUML & seed-extension (https://github.com/erick-rivas/seed-staruml).
- Create or edit a model definition file (SeedModeling.mdj) and modify the diagram with the rules defined in seed-extension documentation.
- Export diagram as SeedManifest.json.
- Run builder.
seed-builder
It automatically detect the project settings described in SeedManifest.json and update or create the required files
Extend modules
In case of extend the functionality of autogenerated resources, use seed-builder extend command, example:
- To extend the functionality of a Django model
seed-builder extend -m model:<model_name>
Scaffolding generation
In case of require scaffolding for ease file generation, use seed-builder scaffolding command
- To scaffolding a new reactjs component
seed-builder scaffolding -m nav/navbar
It will create a scaffold with components/nav/Navbar.js, views/nav/Navbar.js
References
For more information about modules, extensions or specific information about each platform, check their respective documentation
- Django Reference (https://github.com/erick-rivas/django-reference)
- ReactJs Reference (https://github.com/erick-rivas/reactjs-reference)