From the course: Angular: Progressive Web Apps

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Creating a RESTful API

Creating a RESTful API

- [Instructor] Now it's time to create our backend. We're going to make a very simple server that will serve our coffee items in JSON format and it will store those coffee items in a very simple database in the file system. To do that, I'm going to create a separate project. So now I'm not in the Angular project, I'm going to create a pure node.js project. So I'm going to open a folder, and I'm going to create a new folder. We can call this server. And in here I'm going to start a new npm project. So I'm going to open my terminal and I will execute npm in it. This is going to ask me a couple of questions, such as the package name, the version number, a description, entry point, test command, GIT repository, blah, blah, blah, blah. I will say yes. And now I have my package that JSON, the next step will be to add the dependencies. And for that I'm going to use two open source solutions that are available on npm. The…

Contents