LoopBack 4 GA (General Availability) has been released

309 views
Skip to first unread message

mbaj...@gmail.com

unread,
Oct 11, 2018, 9:39:36 AM10/11/18
to LoopbackJS
Dear LoopBack users,

We are happy to announce the release of LoopBack 4.0 GA.

New website: http://v4.loopback.io

Happy coding,
Miroslav

Ashok Kumar Sand

unread,
Oct 12, 2018, 7:43:28 AM10/12/18
to LoopbackJS
The loopback CLI is not working properly. after adding either a model or repository npm start is not working 

Ananthu Raj

unread,
Oct 12, 2018, 7:46:04 AM10/12/18
to loopb...@googlegroups.com
Do an npm install it should work

--
You received this message because you are subscribed to the Google Groups "LoopbackJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loopbackjs+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loopbackjs/952bd892-4753-4690-bc8f-2e141748c330%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ashok Kumar Sand

unread,
Oct 12, 2018, 8:02:52 AM10/12/18
to LoopbackJS
Also, there are no  logs 


On Thursday, 11 October 2018 19:09:36 UTC+5:30, mbaj...@gmail.com wrote:

Ramzan Sikandar

unread,
Oct 12, 2018, 9:14:09 AM10/12/18
to loopb...@googlegroups.com
Install yarn and try yarn install

Sent from my iPhone

Ashok Kumar Sand

unread,
Oct 12, 2018, 9:19:59 AM10/12/18
to loopb...@googlegroups.com
No, it's not working. Also, I generated from loopback cli.
Regards,
Ashok Kumar Sand
sd@qualys



Screen Shot 2018-10-12 at 6.48.11 PM.png

Raymond Feng

unread,
Oct 12, 2018, 9:53:31 AM10/12/18
to LoopbackJS
Ashok,

Are you saying the project does not start after adding a model?

Thanks,
Raymond


For more options, visit https://groups.google.com/d/optout.
<Screen Shot 2018-10-12 at 6.48.11 PM.png>

Raymond Feng

unread,
Oct 12, 2018, 10:02:06 AM10/12/18
to loopb...@googlegroups.com
Ashok,

I just tried your steps and it works. Can you provide exact instructions to reproduce the problem? Which Node version are you on?

Thanks,
Raymond

On Oct 12, 2018, at 6:19 AM, Ashok Kumar Sand <sand....@gmail.com> wrote:


For more options, visit https://groups.google.com/d/optout.

Ashok Kumar Sand

unread,
Oct 12, 2018, 10:03:24 AM10/12/18
to loopb...@googlegroups.com

node --version

v8.11.4

Regards,
Ashok Kumar Sand
sd@qualys


Ashok Kumar Sand

unread,
Oct 12, 2018, 10:08:23 AM10/12/18
to loopb...@googlegroups.com
I installed loopback CLI as mentioned in http://v4.loopback.io/getting-started.html

First, I added oracle data source but it's not working. After that, I delete that project and try to generate the model its not working. 
Also if I want to load data source option from the vault or remote URL that time it's not able to read from mentioned data source file. 

There is no logs are displayed. I tried to put the console log at many places but no logs at all. 

Regards,
Ashok Kumar Sand
sd@qualys


Ashok Kumar Sand

unread,
Oct 12, 2018, 10:28:18 AM10/12/18
to loopb...@googlegroups.com

113071-MBP15:NetBeansProjects asand$ npm list -g --depth 0

/Users/asand/.nvm/versions/node/v8.11.4/lib

├── @loopback/c...@1.0.0

├── n...@5.6.0

├── npm-chec...@2.14.2

└── types...@3.1.1


113071-MBP15:NetBeansProjects asand$ lb4 reporting-service

? Project description: reporting-service

? Project root directory: reporting-service

? Application class name: ReportingServiceApplication

? Select features to enable in the project Enable tslint, Enable prettier, Enable mocha, Enable loopbackBuild, Enable vscode, Enab

le repositories, Enable services

   create .npmrc

   create .prettierignore

   create .prettierrc

   create DEVELOPING.md

   create README.md

   create index.ts

   create package.json

   create tsconfig.json

   create tslint.build.json

   create tslint.json

   create .vscode/settings.json

   create .vscode/tasks.json

   create test/mocha.opts

   create .gitignore

   create index.js

   create public/index.html

   create src/application.ts

   create src/index.ts

   create src/sequence.ts

   create test/README.md

   create src/controllers/README.md

   create src/controllers/home-page.controller.ts

   create src/controllers/index.ts

   create src/controllers/ping.controller.ts

   create src/datasources/README.md

   create src/models/README.md

   create src/repositories/README.md

   create test/acceptance/home-page.controller.acceptance.ts

   create test/acceptance/ping.controller.acceptance.ts

   create test/acceptance/test-helper.ts

npm WARN reportin...@1.0.0 No license field.


added 550 packages in 8.739s


Application reporting-service was created in reporting-service.


Next steps:


$ cd reporting-service

$ npm start

113071-MBP15:reporting-service asand$ 

113071-MBP15:reporting-service asand$ lb4 datasource

? Datasource name: oracle

? Select the connector for oracle: Oracle (supported by StrongLoop)

? Connection String tns (eg: DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MY_HOST)(PORT=MY_PORT))(CONNECT_DATA=(SERVER=DEDICATED)(SERV

ICE_NAME=MY_DB))): 

? host: localhost

? port: 1521

? user: u_ninja

? password: [hidden]

? database: ninja

   create src/datasources/oracle.datasource.json

   create src/datasources/oracle.datasource.ts


> orac...@2.3.0 install /Users/asand/NetBeansProjects/reporting-service/node_modules/oracledb

> node package/oracledbinstall.js


oracledb Beginning installation

oracledb Verifying installation

oracledb Continuing installation

oracledb Oracledb downloaded

oracledb Verifying installation

oracledb Binary SHA matches SHA in SHASUMS256.txt

oracledb 

oracledb ********************************************************************************

oracledb ** Node-oracledb 2.3.0 installation complete for Node.js 8.11.4 (darwin, x64)

oracledb **

oracledb ** To use the installed node-oracledb:

oracledb ** - You need to have the Oracle Instant Client Basic or Basic Light package in ~/lib or /usr/local/lib

oracledb **   Download from http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html

oracledb **

oracledb ** Node-oracledb installation instructions: https://oracle.github.io/node-oracledb/INSTALL.html

oracledb ********************************************************************************


npm WARN reportin...@1.0.0 No license field.


+ loopback-con...@4.1.1

added 2 packages in 9.318s

   update src/datasources/index.ts


Datasource oracle was created in src/datasources/


113071-MBP15:reporting-service asand$ npm start


> reportin...@1.0.0 prestart /Users/asand/NetBeansProjects/reporting-service

> npm run build



> reportin...@1.0.0 build /Users/asand/NetBeansProjects/reporting-service

> lb-tsc es2017 --outDir dist



> reportin...@1.0.0 start /Users/asand/NetBeansProjects/reporting-service

> node .


113071-MBP15:reporting-service asand$ 





Regards,
Ashok Kumar Sand
sd@qualys


Raymond Feng

unread,
Oct 12, 2018, 11:11:55 AM10/12/18
to loopb...@googlegroups.com
Adding an Oracle datasource is a bit tricky as the oracledb driver requires Oracle instant client to be installed and configured correctly.

But adding a model should be easy and working. When you say ‘I delete the project’, does it mean that you create a new project using `lb4` again?

Thanks,
Raymond

Ashok Kumar Sand

unread,
Oct 12, 2018, 11:39:36 AM10/12/18
to loopb...@googlegroups.com
Yes, I created a new one. My oracle client is working with the express application. I want to migrate to loopback. Also is there any tool to generate the model from a database? 

Regards,
Ashok Kumar Sand
sd@qualys


Raymond Feng

unread,
Oct 12, 2018, 11:41:57 AM10/12/18
to loopb...@googlegroups.com
The DB discovery function is only available in LoopBack 3.x and it’s not supported yet for v4.

Ashok Kumar Sand

unread,
Oct 15, 2018, 4:20:45 AM10/15/18
to loopb...@googlegroups.com
I am not able to generate the repository  also not able to start lb4 application

Regards,
Ashok Kumar Sand
sd@qualys


ashu...@zestmoney.in

unread,
Nov 20, 2018, 4:28:56 AM11/20/18
to LoopbackJS
Hi, Can you please tell me how can I add a prefix to all my API paths e.g. /api/v1 base path?

Miroslav Bajtoš

unread,
Nov 20, 2018, 8:15:37 AM11/20/18
to loopb...@googlegroups.com
Hi,

we don't support base path (prefix) configuration yet. Please upvote one (or both) of these issues to tell us about your interest:


--
You received this message because you are subscribed to a topic in the Google Groups "LoopbackJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/loopbackjs/FYX6c9OqrV4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to loopbackjs+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loopbackjs/5ce8d793-b688-4364-b9de-edfc7886f89e%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages