This is an Electron application that serves as a UI for the awesome JSON Server
Download the latest release (macOS only)
TODO make available via homebrew
This project uses JSON Server v0.14.0 under the hood so you can expect everything that works with JSON Server to work with this UI. It's important to understand that JSON Server generates routes based on the top level properties in the db.json
file. So given the following db.json
:
{
"posts": [
{ "id": 1, "title": "json-server", "author": "typicode" }
],
"comments": [
{ "id": 1, "body": "some comment", "postId": 1 }
],
"profile": { "name": "typicode" }
}
You can:
$ curl http://localhost:3000/posts/1
> {"id":1,"title":"json-server","author":"typicode"}
You can learn much more about JSON Server by reading the great documentation.
- Fork the repository
- Clone your forked repository
- Run
yarn
ornpm i
to install dependencies - Start client side build process with
yarn start:client
- Start the Electron process with
yarn start
- Make changes
- Submit a PR against the master branch of this repository
- Access logs
- Dispaly generated routes
- Unit tests for client and server code
- JSON validation in the UI
- Save database snapshots
- Settings View
- SSL setting
- Configurable port setting
- Integrate with a fake data generator such as Faker, Casual, Chance or JSON Schema Faker