generator-lbts
v1.1.0
Published
Generator for converting loopback default created package to a typescript with autoupdate
Downloads
4
Readme
generator-lbts
Generator for converting loopback default created package to a typescript with autoupdate
Installation
First, install Yeoman and generator-lbts using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-lbts
Then generate your new project:
yo lbts
##About I found Loopback to be a very helpful tool when working with databases. You start off by generating a new Node project and continue on generating datasources, models and even relations, all with the command line.
The only downside to it was that it does not generate typescript code. In addition I needed to add some basic code in order to support one time database migrations and also updating of the database with each execution validating that the database is always inline with the latest code.
##Usage start off by generating a regular loopback 3.0 Node project and define a datasource. Then from the commnad line run yo lbts that will do the rest for upgrading to typescript and adding the required code for db migration and updating
License
MIT License © Oded Levy