Various typescript snippets for the CCD Framework
You can get CCD at https://github.com/codechem/ccd
or just:
shell>npm install ccd
Available snippets
- cfull : Creates Controller and Service
- cimport : default CCD imports
- cctrl : Empty CCController
- csvc : Empty CCService
Controller Methods snippets
- @cv : Creates new empty route handler
- @get : Creates new get route handler method
- @post : Creates new put route handler method
- @put : Creates new put route handler method
- @delete : Creates new delete route handler method
Service Method overload snippets
- csvctrl : Creates new empty CCServiceController
- byId : CCService override of the byId method
- updateById : CCService override of the updateById method
- deleteById : CCService override of the deleteById method
- insert : CCService override of the insert method
- create : CCService override of the create method
- createAndSave : CCService override of the createAndSave method
- createAndSaveMany : CCService override of the createAndSaveMany method
| |