GithubHelp home page GithubHelp logo

json-server-gui's Introduction

JSON Server GUI

What?

The json-server module starts a server exposing a dynamic REST API: any call to /somethings on your server will act like a standard REST API with no schema constraint. Checkout the project for more information.

JSON Server GUI just adds a GUI on top, based on node-webkit.

Why?

During JavaScript trainings you may want your trainees to work with a REST API (let's say, when you talk about Ajax :)). The best way would be to provide a single executable they can click on, and start experiments.

With this very simple GUI they can see the data in real time, and the requests they played. They have a direct feedback, without the need to tell them how to install a server, use a CLI, or even host your own server.

Screenshot

How?

Download

Pre-built binaries for latest version are available here:

Build

Clone the repository, then run make. The project will build for Linux (32 & 64 bits), Windows (32 bits), and Max OSX.

It can last about a century first time as it will download all corresponding node-webkit distributions.

To build specific for a specific platform:

make build-linux32
make build-linux64
make build-windows
make build-osx

Moar!

  • $APP_DIR/public is served as document root
  • $APP_DIR/db.json is your data file
  • Some behavior can be defined from environment variables:
    • APP_DIR = directory where we'll search for db.json and public folder (default = app's folder)
    • PORT = server's port (default = 26080)

TODO

  • Better GUI
  • Persisted configuration (instead of env)

How to contribute

  • Fork & clone
  • Install node-webkit for your platform (alternatively, you can run make build-<your platform> and grab node-webkit from node_modules/node-webkit-builder/cache/0.10.5/<your platform>/, saving you a duplicate download)
  • Make your changes and test them by running /path/to/nw src
  • Create a pull request

json-server-gui's People

Contributors

naholyr avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.