Skip to content

Commit 698bf6b

Browse files
committed
Update README.md
1 parent 73f919d commit 698bf6b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# JSON Server [![](https://travis-ci.org/typicode/json-server.svg)](https://travis-ci.org/typicode/json-server) [![](https://badge.fury.io/js/json-server.svg)](http://badge.fury.io/js/json-server) [![Join the chat at https://gitter.im/typicode/json-server](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/typicode/json-server?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
1+
# JSON Server [![](https://travis-ci.org/typicode/json-server.svg)](https://travis-ci.org/typicode/json-server) [![](https://badge.fury.io/js/json-server.svg)](http://badge.fury.io/js/json-server)
22

33
> Get a full fake REST API with __zero coding__ in __less than 30 seconds__ (seriously)
44
@@ -33,11 +33,11 @@ Now if you go to [http://localhost:3000/posts/1](), you'll get
3333
{ "id": 1, "title": "json-server", "author": "typicode" }
3434
```
3535

36-
Also, if you make POST, PUT, PATCH or DELETE requests, changes will be automatically saved to `db.json` using [lowdb](https://github.com/typicode/lowdb)
36+
Also, if you make POST, PUT, PATCH or DELETE requests, changes will be saved to `db.json`
3737

3838
## Routes
3939

40-
Here are all the available routes.
40+
Based on the previous `db.json`, here are all the available routes.
4141

4242
```
4343
GET /posts
@@ -113,11 +113,11 @@ $ json-server http://jsonplaceholder.typicode.com/db
113113
You can use JS to programmatically create data:
114114

115115
```javascript
116-
module.exports = function () {
116+
module.exports = function() {
117117
data = { users: [] }
118118
// Create 1000 users
119119
for (var i = 0; i < 1000; i++) {
120-
data.users.push({ id: i, name: 'user' + i })
120+
data.users.push({ name: 'user' + i })
121121
}
122122
return data
123123
}
@@ -149,13 +149,13 @@ You can deploy JSON Server. For example, [JSONPlaceholder](http://jsonplaceholde
149149

150150
## Links
151151

152-
### Video tutorial
152+
### Video
153153

154154
* [Creating Demo APIs with json-server on egghead.io](https://egghead.io/lessons/nodejs-creating-demo-apis-with-json-server)
155155

156156
### Articles
157157

158-
* [Fast prototyping using Restangular and Json-server](http://glebbahmutov.com/blog/fast-prototyping-using-restangular-and-json-server/)
158+
* [Fast prototyping using Restangular and Json-server](http://glebbahmutov.com/blog/fast-prototyping-restangular-and-json-server/)
159159
* [ng-admin: Add an AngularJS admin GUI to any RESTful API](http://marmelab.com/blog/2014/09/15/easy-backend-for-your-restful-api.html)
160160
* [how to build quick json REST APIs for development](http://outloudthinking.me/how-to-build-quick-json-rest-apis/)
161161

0 commit comments

Comments
 (0)