In this video, choose a database, scale it for your sample application, see how it integrates with Node.js, and pick a winner.
- [Instructor] In the previous video,…we looked at resources and character collections…and Twitter's API,…and learned how to use them with async.js.…In this video, we will choose a database…for our sample application.…We will look at two different types of databases:…relational databases and document-oriented databases.…Then we will talk about how we would scale…each type of database with our application.…We will see how each of these databases integrates…with node.js,…and finally, we will pick a winner.…
Let's start by talking about relational databases…like MySQL and Postgres.…Relational database store data in tables…which consist of rows and columns.…These tables are connected using…clearly defined relationships,…such as one to one, one to many, or many to one.…Such databases usually enforce strict schemas…at the database level,…giving developers less freedom for more consistency.…
These databases are usually queried using SQL,…which stands for structured query language.…The advantage of relational databases…is that they've been used for a very long time,…
This Node.js course gives you an overview of a RESTful API and the logical steps of creating one. It explores three different APIs, focusing on their similarities and differences and how to effectively implement one. Instructor Saleh Hamadeh starts off by defining APIs, showing how they can be built on top of HTTP and listing the properties that make an API RESTful. Learn how to develop Twitter Notes, a sample web application that lets users leave notes for their Twitter friends. Use Twitter's API to implement a login flow and then design a web API. Additionally, get a closer look at several other real-world APIs, and learn some best practices to keep APIs secure, maintainable, and efficient.
- Identifying REST resources
- Setting up the development environment
- Consuming a RESTful API
- Creating an OAuth login request
- Getting an access token
- Saving data in MongoDB
- Building a RESTful API
- Testing user-perceived performance
- Looking at APIs in the real world
- Best practices for building RESTful APIs