Skip to content

Commit c3c5f55

Browse files
committed
fix titles caps and Mongoose
1 parent 64e8ab7 commit c3c5f55

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Module 3: Crud and data models
1+
# Module 3: CRUD and Data Models

module3-crud-and-data-models/r1-schema-and-data-models/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## Intoduction to database schemas
1+
## Intoduction To Database Schemas
22

33
A database schema is a blueprint or architecture of how our data will look. It doesn’t hold data itself, but instead describes the shape of the data and how it might relate to other tables or models.
44

5-
For example, this is a `customer` schema in MongoDB using mongoose.
5+
For example, this is a `customer` schema in MongoDB using Mongoose.
66

77
```js
88
const mongoose = require("mongoose");

module3-crud-and-data-models/r1.1-principles-of-setting-up-your-schema/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Principles of setting up your schema
1+
## Principles Of Setting up Your Schema
22

33
Poorly designed databases can cause many problems, including wasting resources, making maintenance difficult, and hindering performance. That's why having a great database schema design is a crucial part of effective data management.
44
By defining categories of data and relationships between those categories, database schema design makes data much easier to retrieve, consume, manipulate, and interpret.

module3-crud-and-data-models/r3-model-view-controller/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ package-lock.json
3030
In this folder, you can write the functionality & logics related to the Database (if you aren't using ORM) like insert, fetch, update, delete queries. It takes the query request from the controller & sends the response back to the controller.
3131
The naming convention for the model files is: `name-here-model.js`.
3232

33-
Here’s an example model using JavaScript and mongoose.
33+
Here’s an example model using JavaScript and Mongoose.
3434

3535
```js
3636
// post-model.js
@@ -90,5 +90,5 @@ router.get('/posts', (req, res) => {
9090

9191
## Resources
9292

93-
- [MVC Architecture with NodeJS and mongoose](https://medium.com/geekculture/mvc-architecture-with-express-server-e35aedfe7889)
93+
- [MVC Architecture with NodeJS and Mongoose](https://medium.com/geekculture/mvc-architecture-with-express-server-e35aedfe7889)
9494
- [express MVC structure](https://codingstatus.com/express-mvc-structure/)

module3-crud-and-data-models/r3.2-models-and-controllers-in-mongoose/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Models and controllers in mongoose
1+
## Models and Controllers in Mongoose
22

33
Mongoose is one of the fundamental tools for manipulating data for a Node.js and MongoDB backend.
44

@@ -28,12 +28,12 @@ const Food = mongoose.model("Food", food);
2828
module.exports = Food;
2929
```
3030

31-
And we are required to do the CRUD operation on this model, how can we acheive that with mongoose?
31+
And we are required to do the CRUD operation on this model, how can we acheive that with Mongoose?
3232
we will first create a `food-conroller` for all the food requests and place all requests in there.
3333

3434
- #### Read
3535

36-
To get all the foods from our MongoDB using mongoose we can simply use the `find({})` function.
36+
To get all the foods from our MongoDB using Mongoose we can simply use the `find({})` function.
3737

3838
Note: we can read specific items from MongoDB using queries in the `find()` function.
3939

module3-crud-and-data-models/r4-building-custom-methods-on-mongoose/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## Building your own methods on mongoose
1+
## Building Your Own Methods on Mongoose
22

3-
In mongoose, instances of Models are documents. Documents have many of their own built-in instance methods. We may also define our own custom document instance methods.
3+
In Mongoose, instances of Models are documents. Documents have many of their own built-in instance methods. We may also define our own custom document instance methods.
44

55
For example:
66

@@ -27,4 +27,4 @@ dog.findSimilarTypes((err, dogs) => {
2727

2828
## Resources
2929

30-
- [instance methods in mongoose](https://mongoosejs.com/docs/guide.html#methods)
30+
- [instance methods in Mongoose](https://mongoosejs.com/docs/guide.html#methods)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Conclusion
22

3-
We learned a bit about creating a good database schema, then dived into CRUD requests with mongoose and how to create a RESTful api, we also touched on folder structure using the MVC design pattern, finally, we learned about creating custom methods in mongoose.
4-
With that being said, now you should be able to build a well structured back-end application with NodeJS, express, and mongoose for better MongoDB models.
3+
We learned a bit about creating a good database schema, then dived into CRUD requests with Mongoose and how to create a RESTful api, we also touched on folder structure using the MVC design pattern, finally, we learned about creating custom methods in Mongoose.
4+
With that being said, now you should be able to build a well structured back-end application with NodeJS, express, and Mongoose for better MongoDB models.
55
But you are still missing one of the big pillars in back-end development, and that is **authentication**! Which you are going to learn in the next module.

0 commit comments

Comments
 (0)