/escher-demo

Demos to get started with Escher development

Primary LanguageHTMLOtherNOASSERTION

escher-demo

To get started, clone this repository using git, or download this ZIP file.

Then, in your favorite terminal, navigate to the folder that contains this README, and run one of the following commands to start a web server.

# python 2
python -c "import SimpleHTTPServer; m = SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map; m[''] = 'text/plain'; m.update(dict([(k, v + ';charset=UTF-8') for k, v in m.items()])); SimpleHTTPServer.test();"

# python 3
python -m http.server

# node.js
http-server -p 8000

This will start a unicode-friendly Python web server. Open http://localhost:8000/ to see the demos.

Try editing the embedded_map_builder/index.html file, then reload your web browser to see what you've changed. You can see what's happening under the hood by opening your Developer tools (Chrome, Firefox). Next, have a look at the Escher JavaScript documentation to learn about the Builder class and its options and methods.