Skip to Content
Node.js 6.x Blueprints
book

Node.js 6.x Blueprints

by Fernando Monteiro
August 2016
Intermediate to advanced
376 pages
6h 33m
English
Packt Publishing
Content preview from Node.js 6.x Blueprints

Creating a datasource through the command line

We will use a database to store the feedback of our customers, so we will create the datasource using the LoopBack CLI:

  1. Open terminal/shell in the root project and type the following command:
    slc loopback:datasource
    
  2. Fill in the options with the following information:

    Creating a datasource through the command line

    Screenshot of the datasource terminal output

Note that the final option is to install the MongoDB connector. So, don't forget to create the database: motorcycle-feedback on your MongoDB instance.

Tip

For the book example, we are not using User and Password for the database, but it is strongly recommended that you use a User and a strong Password ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Node.js Development

Learning Node.js Development

Andrew Mead
VB.NET Core Classes in a Nutshell

VB.NET Core Classes in a Nutshell

Budi Kurniawan, Ted Neward
Your First Week With Node.js, 2nd Edition

Your First Week With Node.js, 2nd Edition

James Hibbard, Craig Buckler, Mark Brown, Nilson Jacques, James Kolce, Paul Orac, M. David Green, Florian Rappl

Publisher Resources

ISBN: 9781785888434Supplemental Content