01 - Install and Set Up Mongoose - MongoDB and Mongoose - freeCodeCamp Tutorial

Опубликовано: 10 Июль 2020
на канале: Ganesh H
14k
88

Before we can start accessing our database, we have to install MongoDB and Mongoose on our project. We can do this through NPM, and we can require Mongoose to use the connect() method to make a connection to our database.

Link to challenge :
Written Guide :

Full Playlist for this course :
All Writen Guides for this course :
All My Tutorials can be found at :

Concepts:
mongoose.connect()
Opens the default mongoose connection.


require()
Used to import modules, JSON, and local files. Modules can be imported from node_modules.


dependencies
Dependencies are specified in a simple object that maps a package name to a version range. The version range is a string which has one or more space-separated descriptors. Dependencies can also be identified with a tarball or git URL.


package.json
All npm packages contain a file, usually in the project root, called package.json - this file holds various metadata relevant to the project. This file is used to give information to npm that allows it to identify the project as well as handle the project's dependencies. It can also contain other metadata such as a project description, the version of the project in a particular distribution, license information, even configuration data - all of which can be vital to both npm and to the end users of the package. The package.json file is normally located at the root directory of a Node.js project.

-————————————————————————————————————-
MongoDB is a cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas. MongoDB is developed by MongoDB Inc. and licensed under the Server Side Public License (SSPL).

Mongoose is an Object Data Modeling (ODM) library for MongoDB and Node.js. It manages relationships between data, provides schema validation, and is used to translate between objects in code and the representation of those objects in MongoDB.

freeCodeCamp (also referred to as “Free Code Camp”) is a non-profit organization that consists of an interactive learning web platform, an online community forum, chat rooms, online publications and local organizations that intend to make learning web development accessible to anyone. Beginning with tutorials that introduce students to HTML, CSS and JavaScript, students progress to project assignments that they complete either alone or in pairs. Upon completion of all project tasks, students are partnered with other nonprofits to build web applications, giving the students practical development experience.

Thanks for Watching!


Смотрите видео 01 - Install and Set Up Mongoose - MongoDB and Mongoose - freeCodeCamp Tutorial онлайн без регистрации, длительностью 05 минут 08 секунд в хорошем hd качестве. Это видео добавил пользователь Ganesh H 10 Июль 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 14 тысяч раз и оно понравилось 88 людям.