0.2.0 • Published 4 years ago
@hackcode/module-generator v0.2.0
hackcode-module-generator :running:
Overview
A command line utility to quickly generate modules with boilerplate containing routes, controllers, models, interfaces and mongoose schema. The code has integrations with winston logger and responses module , therefore it is strongly recommended to use it with the @hackcode/typescript-template to actually make your life easy.
Usage
- Install the package globally
- Run
hackcode-module-generator
from thesrc
directory of your project - By default, the package looks for
hackcode@moduleGenerator.json
file for module design. Make sure that the file contains valid module design json - Done
Roadmap:
- Core Engine
- Class to processes raw instructions
- Parse Input instructions to standard instructions which can be "actioned" by code
- Categorize the data in various forms to easy code generation
- Generator Code files for (based on instructions)
- Mongoose schema
- Models
- Interface
- Controllers
- Routes
Tests (100% Coverage)To be included as separate package
- Provision routes for searching based on schema
- Accommodate Extensions
- Logging in module generator script. Currently only cli script is bring logged.
Features to expect:
- Transform to a CLI