13. Module 2 introduction
In module number 2, we're going to take the first steps in building our backend API.
We're going to begin by setting up Express, which is a micro framework that is perfect for creating APIs.
We'll be scaffolding the API using the MVC structure.
You'll see here in our server folder that we now have files for controllers, models, and a routes file, too.
To help us develop this API before we've built a client app to consume it, we'll be using the Postman API development environment. We'll install that and also setup some test requests.
For example, you can see here I've got a POST /items request with a JSON body. And when I send that to our server, it's returning a 200 request and we're seeing a response object.
Speaking of which, since our API will need to persist the data it receives, we'll be using MongoDB, which is a non-relational database and is great for loosely structured data like that of PrintBay.
In fact, we'll be using Mongoose ORM which is an abstraction of Mongo DB that makes CRUD operations a breeze.
You can see here one of the validated data models that we'll be creating in a later video.
We'll then use our model to save data we receive via the API using async/await syntax in order to create our first functioning API endpoint.