Esri / wind-js

An demo animation of wind on a Canvas layer in the JSAPI
MIT License
735 stars 214 forks source link

how to run this project locally #37

Open aminabvaal opened 5 years ago

Jing25 commented 5 years ago

I have the same question

on-myown commented 4 years ago

How can I run this project on my local?

lozenge0 commented 4 years ago

agreed, an example project utilising this would be a huge help in explaining how to use this

vitexikora commented 4 years ago

Some tutorial or at least a reproducible repo would be awesome. After several hours, I am unable to run this... I am getting results like that, with the original gfs.json data and almost identical logic as in index.html... windy

missionloyd commented 4 years ago

how do you run the project locally?

mpayson commented 4 years ago

I tried changing line 39 in index.html to remove the slash before "plugins" and it worked for me behind a local static server (eg serve). Does this work for you? plugins: location.pathname.replace(/\/[^/]+$/, "") + "plugins"

hbriga commented 3 years ago
  1. download the zip file from github or clone the project:
    git clone https://github.com/Esri/wind-js.git
  2. start a minimalist local web-server using python (you can do it using node.js if you prefer), doing this: a. on your terminal, change directory to where wind-js folder is located and fire up python. b. type the following: import os os.system('python3 -m http.server 8765 &')
  3. point your browser to localhost:8765
  4. you should see the map on your web browser.

hope this could help.