Last active
June 28, 2019 18:36
-
-
Save rogerwschmidt/f8660b26e76a17a3dbed30067ce955f4 to your computer and use it in GitHub Desktop.
Revisions
-
rogerwschmidt revised this gist
Mar 22, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ ## Install mongodb ``` brew install mongodb mongo ``` ## Explain the differences between a database, collection, and a record -
rogerwschmidt revised this gist
Mar 22, 2019 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,6 @@ # Mongodb + express instructor notes ## Objectives * Install mongodb * Explain the differences between a database, a collection, and a record * Add records to a collection -
rogerwschmidt revised this gist
Mar 22, 2019 . 1 changed file with 6 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,15 +15,18 @@ * [express-mongo-book-case solution](https://github.com/rogerwschmidt/express-mongo-book-case/tree/solution) * https://mongoosejs.com/docs/models.html ## Install mongodb ``` brew install mongodb mongodb ``` ## Explain the differences between a database, collection, and a record * Read over https://docs.mongodb.com/manual/core/databases-and-collections/ * What is a mongodb database? * What is a mongodb collection? * What is a mongodb record? * How do the above terms compare to a RDB? ## Add records to a collection * Add a new book to the books collection/schema using the post request -
rogerwschmidt created this gist
Mar 22, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,44 @@ # Mongodb + express instructor notes ## Objectives * Define what mongodb is, and why it is useful * Install mongodb * Explain the differences between a database, a collection, and a record * Add records to a collection * Get all records in a collection * Get one record from a collection * Delete one record from a collection * Update one record in a collection ## Resources * [express-mongo-book-case](https://github.com/rogerwschmidt/express-mongo-book-case) * [express-mongo-book-case solution](https://github.com/rogerwschmidt/express-mongo-book-case/tree/solution) * https://mongoosejs.com/docs/models.html ## Define what mongodb is, and why it is useful * Look ## Install mongodb ## Explain the differences between a database, collection, and a record * Read over https://docs.mongodb.com/manual/core/databases-and-collections/ * What is a mongodb database? * What is a mongodb collection? * What is a mongodb record? ## Add records to a collection * Add a new book to the books collection/schema using the post request ## Get all records in a collection * Get all books from the books collections/schema ## Get one record from a collection * Get one book by id from the books collections/schema ## Delete one record from a collection * Delete one book by id from the books collections/schema ## Update one record in a collection * Update one book by id from the books collections/schema ## Update views counter on get one * Update the get one route to find and update one record by id