Skip to content

tthinh188/json-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-server

Creat your own json-server

1st: Clone this repository.

2nd: Under this repo, run: npm install

3rd: Start this json-server, run: npm run json-server

Run your json-server

Check the server port (default port should be 3000).

On browser, check json-server main page(http://localhost:3000 ) for our json-server.

Click “/posts”, check our posts data. (http://localhost:3000/posts)

Try it:

fetch('http://localhost:3000/posts/1')
  .then(response => response.json())
  .then(json => console.log(json))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published