Interface using React Admin as well as implement a fake REST API with JSON-Server - Traversy Media
Copy db.json.exemple to db.json
Edit json file db.json
{
"posts": [
{
"id": "1",
"title": "Post One",
"body": "This is the post body",
"publishedAt": "18-06-2021"
},
{
"id": "2",
"title": "Post Two",
"body": "This is the post body",
"publishedAt": "18-06-2021"
},
{
"id": "3",
"title": "Post Three",
"body": "This is the post body",
"publishedAt": "18-06-2021"
},
{
"id": "4",
"title": "Post Four",
"body": "This is the post body",
"publishedAt": "18-06-2021"
}
],
"users": [
{
"id": "1",
"name": "Lorem Ipsum",
"email": "[email protected]"
}
]
}
Exec:
$ git clone https://github.com/Lindomarc/react-admin-json.git react-admin
$ cd react-admin
$ npm install
$ npm run server