Using a Database (with Mongoose)
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/mongoose This article briefly introduces databases, and how to use them with Node/Express apps. It then goes on to show how we can use Mongoose to provide database access for the LocalLibrary website. It explains how object schema and models are declared, the main field types, and basic validation. It also briefly shows a few of the main ways in which you can access model data. Prerequisites: Express Tutorial Part 2: Creating a skeleton website Objective: To be able to design and create your own models using Mongoose. Overview Library staff will use the Local Library website to store information about books and borrowers, while library members will use it to browse and search for books, find out whether there are any copies available, and then reserve or borrow them. In order to store and retrieve information efficiently, we will store it in a database . Express apps...
Comments
Post a Comment