From the course: Building APIs with LoopBack

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Running the application

Running the application - Node.js Tutorial

From the course: Building APIs with LoopBack

Start my 1-month free trial

Running the application

- [Instructor] Okay, so we've just created the application. How do we actually run it? First, ensure you're still in the App One folder from the previous lesson. Then, simply type node dot. All right, so what happened here? First, node was able to figure out what file to run by looking at package.json. Let's take a look at that file in our editor. I'm using Visual Studio Code, but you can open it in your editor of choice. I'll just go to Open and then navigate to the package.json file for our LoopBack app. You can see that the main item is defined as server/server.js. So, basically, when I did node.terminal, package.json told it what file to run. Back in the command line, you can see two different main outputs there. The first one tells me where my new server is running. And, the next one tells me where the explorer is running. The explorer is a handy dev tool that I'll be covering later in the course, but for now, if we open up the web server, we can see that LoopBack is running…

Contents