You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,13 +35,13 @@ $ npx json-base --init
35
35
36
36
Normally, the database.json created comes with 2 sample data collections, 'users' ans 'posts', you can add more collections as you please, it's allow.
37
37
38
-
**NB** : Respect the sythax of json files while adding new collection and also keep in mind that all collections must be enwrapped in the `db` field.
38
+
**NB** : Respect the syntax of json files while adding new collection and also keep in mind that all collections must be enwrapped in the `db` field.
39
39
<br>
40
40
41
41
42
42
**4. Perform crud on the schemas as you need it**
43
43
44
-
Let's have a simple tutorial on how we can use this `json-base`. We're going to create a simple app to interact with our models where we can get all the users, get a particular user with a unique key or get a group of users but not all. The developer can also get a limited number of users if he or she specifies the limit arguement in the get function. We're doing this in [tutorial](#3-a-simple-tutorial) section
44
+
Let's have a simple tutorial on how we can use this `json-base`. We're going to create a simple app to interact with our models where we can get all the users, get a particular user with a unique key or get a group of users but not all. The developer can also get a limited number of users if he or she specifies the limit argument in the get function. We're doing this in [tutorial](#3-a-simple-tutorial) section
45
45
46
46
## 3. A simple tutorial
47
47
@@ -106,7 +106,7 @@ import { get } from '@ndzhwr/json-base'
106
106
})
107
107
}())
108
108
```
109
-
The code above retreives`1 record` from the `users` collection, where `user.id == 2`
109
+
The code above retrieves`1 record` from the `users` collection, where `user.id == 2`
110
110
111
111
#### 3. Create data
112
112
As said before, we'll be creating a simple crud operation, this means that we already have read checked on our todo checklist as read is the same as getting data. Next we're going to work on creating data.
@@ -178,14 +178,14 @@ We can't finish without talking about how to delete all data from db in case you
178
178
179
179
## Contributing
180
180
Willing to contribute to this Open Source project ?
181
-
You can contribute to this project by **making bug reports** , **requesing feautures** , **Adding features** and more other ways. Read more [here](CONTRIBUTING.md) before contributing.
181
+
You can contribute to this project by **making bug reports** , **requesting features** , **Adding features** and more other ways. Read more [here](CONTRIBUTING.md) before contributing.
182
182
183
183
## Maintainers
184
184
This repo is maintained by [@ndzhwr](https://github.com/ndzhwr).
185
185
You can buy him coffee on <astyle="color:yellow;"href="https://www.buymeacoffee.com/ndzhwr">Buymeacoffee</a>
0 commit comments