Skip to content

Commit 9769a4a

Browse files
committed
add resources
1 parent 454d832 commit 9769a4a

File tree

5 files changed

+19
-6
lines changed
  • module3-crud-and-data-models

5 files changed

+19
-6
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ CREATE TABLE customer (
4141

4242
We can see that the schema definition for the `Customer` has a `name` which is a type `string` and a `zipcode` that is of type `number`.
4343

44-
For more details about database schemas [see this](https://www.educative.io/blog/what-are-database-schemas-examples#types)
45-
4644
### The Difference between data model and schema
4745

4846
The database schema is one that contains list of attributes and instructions to tell the database engine how data is organised whereas Data model is a collection of conceptional tools for describing data, data-relationship and consistency constraints.
@@ -157,4 +155,7 @@ Response: Status Code - 204 (NO CONTENT)
157155

158156
Body - None
159157

160-
[See this](https://www.educative.io/blog/crud-operations#what) for more information on how these operations are performed on `SQL` database.
158+
## Resources
159+
160+
- [See this](https://www.educative.io/blog/crud-operations#what) for more information on how these operations are performed on `SQL` database.
161+
- [database schemas](https://www.educative.io/blog/what-are-database-schemas-examples#types)

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ In general, there are few `rules` you can follow to better design your schema:
4545
3. Avoid JOINs and $lookups if they can be avoided, but don't be afraid if they can provide a better schema design.
4646
4. How you model your data depends _entirely_ on your particular application's data access patterns.
4747

48-
Watch [this video](https://www.youtube.com/watch?v=leNCfU5SYR8) for a detailed explanation about schema design best practices.
48+
## Resources
49+
50+
- [schema design best practices](https://www.youtube.com/watch?v=leNCfU5SYR8)

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,7 @@ router.get('/posts', (req, res) => {
7777
### Views
7878

7979
In a back-end application, views are usually not implemented and rather we create a front-end app using maybe `React` to call our `api` end-points to manipulate the data in the back-end.
80+
81+
## Resources
82+
83+
- [MVC Architecture with NodeJS and mongoose](https://medium.com/geekculture/mvc-architecture-with-express-server-e35aedfe7889)

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ To get all the foods from our MongoDB using mongoose we can simply use the `find
3737

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

40-
[Read here](https://mongoosejs.com/docs/models.html#Querying) for more information.
41-
4240
Example:
4341

4442
```js
@@ -112,3 +110,7 @@ app.delete("/food/:id", async (request, response) => {
112110

113111
// ...
114112
```
113+
114+
## Resources
115+
116+
- [CRUD operations in mongoose](https://mongoosejs.com/docs/models.html#Querying)

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ dog.findSimilarTypes((err, dogs) => {
2424
console.log(dogs); // woof
2525
});
2626
```
27+
28+
## Resources
29+
30+
- [instance methods in mongoose][https://mongoosejs.com/docs/guide.html#methods]

0 commit comments

Comments
 (0)