jdorn / json-editor

JSON Schema Based Editor
MIT License
5.81k stars 1.08k forks source link

How to run json-editor tool #564

Open integration002 opened 8 years ago

integration002 commented 8 years ago

Hi

I have tried to run json-eidtor tool, but i can't , can any one help to run project code. I have tried below ways

  1. grunt watch
  2. grunt
  3. grunt test

Thanks Palani

cjc343 commented 8 years ago

All grunt watch will do is automatically rebuild ./dist/jsoneditor.js as you modify source files.

There are many different ways to stand up a simple server for your current directory. One possibility:

npm install -g serve
serve

You can now load the demo on localhost:3000/demo.html

eric-schleicher commented 8 years ago

Another super simple way to do this (presuming you have python/windows) is to navigate to the folder where you want to serve in explorer, click in the location bar (alt-d) and type powershell once the command window opens up, type python -m SimpleHTTPServer 8083 which will fire up a simple web server on the port number at the end of the statement. (use 127.0.0.1:port) in a browser