From the course: Building APIs with LoopBack

Unlock the full course today

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

Create a front end

Create a front end - Node.js Tutorial

From the course: Building APIs with LoopBack

Start my 1-month free trial

Create a front end

- [Instructor] In this lesson, I'm going to show you a real, if simple, front end application using loop back for the backend. Before we start working on the front end of the application we need a place to actually put those files. If you remember, our loop back applications fires up and runs well already. It sets up an explorer and the API end points. But how will we use just regular HTML or CSS, java script files or even images. We could set up a completely separate web server. It would need to be on it's own port, of course, but that's definitely an option. An easier option though, would be to simply tell our loop back app to use a folder for static resources. If you remember, loop back uses Express under the hood. Express has support for saying you use folder so-and-so for static assets. Configuring the loop back app to do this is pretty quick. Open up the server folder of the loop back app and find the middleware.json file. Let's do that now. If you know Express already, then…

Contents