-
Notifications
You must be signed in to change notification settings - Fork 381
LoopBack Bluemix native tooling
Rand McKinney edited this page Mar 17, 2017
·
5 revisions
There is a new option: --bluemix
is added to lb datasource
.
- When used with
lb
, user will get Bluemix config prompts, using which the Bluemix artefacts will be generated. - When used with
lb datasource
, it will fetch the provisioned datasource services from Bluemix and present them in the list of choices for datasource to add. Currently only Cloudant and MongoDB services are supported. - When used with
lb model
, only BM datasources will be listed in the datasource option for the new model.
The new lb bluemix
command has the following options:
-
--manifest
: will generate/update themanifest.yml
file -
--docker
: will createDockerfile
and.dockerignore
files -
--toolchain
: will create.bluemix
dir and the toolchain related file there
A docker image can be created and published on Bluemix using the generated Dockerfile
If you want to test the features, do the following.
- Clone these repos:
- https://github.com/strongloop/loopback-cli
- https://github.com/strongloop/generator-loopback
- https://github.com/strongloop/loopback-workspace
- Install the dependencies in
loopback-cli
,generator-loopback
, andloopback-workspace
- Delete
generator-loopback
dir fromloopback-cli/node_modules/
- Symlink
generator-loopback
project dir toloopback-cli/node_modules/
. - Delete
loopback-workspace
dir fromgenerator-loopback/node_modules/loopback-workspace
- Symlink
loopback-workspace
project dir togenerator-loopback/node_modules/loopback-workspace
. - Checkout the
command/bluemix
branch inloopback-cli
- Checkout the
command/bluemix
branch ingenerator-loopback
- Checkout the
command/bluemix
branch inloopback-workspace
- Run
npm link
in theloopback-cli
dir. - Refer to the README of
loopback-cli
for updated commands to test their functionality.