How to run server with loopback?

1

I have access to a backend project and would like to know how to run this project. It uses loopback and reading documentation of loopback , in the statement 4 says:

  

Start the web server.

What command should I use in Ubuntu to start this webserver with loopback ?

After running the command npm install -g loopback-cli and trying to run the system with node . or node server.js this ERR appears in the terminal:

    
asked by anonymous 24.10.2017 / 10:55

2 answers

1

As mentioned by @Sergio in the comments, just run the following command:

npm install
  

You can see more information in the StackOverflow .

    
24.10.2017 / 11:22
0

The loopback is a node-based application that uses packages as dependencies and is controlled via npm. Therefore, the application needs its dependencies to be initialized.

To install the dependencies of an application on NodeJS, you can run the command npm install , which will install all dependencies of the application. Or in case of production, I recommend npm install --production , which avoids the installation of packages needed just for dev.

After performing the installation of the dependencies, you can run the application via node . or npm start .

I recommend using npm start in case of dev, since it may have extra scripts for correct execution of it (You can analyze this by looking at package.json , in the scripts session -> start. >     

05.06.2018 / 23:55