Skip to content

πŸ‘¨β€πŸ‘¨β€πŸ‘§β€πŸ‘¦Use react, redux, react-redux, react- router,webpack,node to gradually build complex applications

Notifications You must be signed in to change notification settings

freyhill/react-full-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

version-1.2-redux-thunk

install json-server

json-server 可δ»₯ζ¨‘ζ‹ŸζŽ₯ε£θ―·ζ±‚οΌŒ

npm install -g json-server

εˆ›ε»ΊδΈ€δΈͺjsonζ–‡δ»Ά

cd api

touch data.json

data.json

{
  "userInfo": {
    "name": "leinov2"
  },
  "student": [
    {
      "name": "leinov2",
      "id": 12
    },
    {
      "name": "hahah",
      "id": 13
    },
    {
      "name": "hahah",
      "id": 14
    },
    {
      "name": "leinov2",
      "id": 15
    }
  ]
}

start server

json-server --watch data.json

and visted localhost:3000/student

About

πŸ‘¨β€πŸ‘¨β€πŸ‘§β€πŸ‘¦Use react, redux, react-redux, react- router,webpack,node to gradually build complex applications

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published