dive-svg icon indicating copy to clipboard operation
dive-svg copied to clipboard

How can I run this project

Open Deuanz opened this issue 8 years ago • 2 comments

I try to run this project I run elm-reactor and open http://localhost:8000/index.html I get 2 error in developer console image

I'm not sure I missing to do some step or not

Deuanz avatar Oct 22 '17 15:10 Deuanz

I also installation instructions to the README.md. Do they work out for you?

myrho avatar Oct 24 '17 12:10 myrho

Build the project as per the instructions in the Readme. Note that elm-install below is elm-github-install, which you can search for and install following the instructions in its Readme.

elm-install
elm make src/Main.elm --output elm.js

Then set up an HTTP server to serve up the directory where index.html is. I suggest using pythons simple http server for this:

python -m SimpleHTTPServer

Now you can use that and pass in the path to one of the samples through the URL. Try opening this URL in your browser:

http://localhost:8000/?samples/demo.svg

===

P.S. I am using this at work to give presentations, as I currently make a lot of diagrams in Inkscape. I usually run it through the online demo, but handy to be able to run it as above in situations where I am offline. Great piece of code thanks for writing @myrho.

rupertlssmith avatar Feb 28 '18 10:02 rupertlssmith