Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run the demo #39

Closed
AmirFarhan opened this issue Sep 5, 2019 · 8 comments
Closed

How to run the demo #39

AmirFarhan opened this issue Sep 5, 2019 · 8 comments

Comments

@AmirFarhan
Copy link

Tried running using the demo files but the only things I see are the satellite map and the grey map

@quai20
Copy link

quai20 commented Sep 5, 2019

Any log/errors in the console ?

@AmirFarhan
Copy link
Author

I used an npm package called "http-server" to run the demo on a localhost server and as I stated before, the wind visualization is not visible. In the error messages it seems like it's running on jquery version 2.2.4 while on my dependency it is 3.4.1. Do I need the wind-js-server to just run the demo?

Screen Shot 2019-09-05 at 3 45 46 PM

@quai20
Copy link

quai20 commented Sep 5, 2019

If you downloaded/cloned the repo, try copying "dist" directory in the "demo" directory and change the path in demo.html (../dist/leaflet-xxxx -> dist/leaflet-xxxx). I remember having some issues with the relative path.
I use "caddy" as a web server

@AmirFarhan
Copy link
Author

Thank you @quai20 . That fixed it.

@estamos
Copy link

estamos commented Sep 2, 2020

If you downloaded/cloned the repo, try copying "dist" directory in the "demo" directory and change the path in demo.html (../dist/leaflet-xxxx -> dist/leaflet-xxxx). I remember having some issues with the relative path.
I use "caddy" as a web server

Could you give me some info on how to set on caddy and run demo ?
I have already download the repo, copied dist directory in the demo and changed the path in demo.html .
I am using v2.1.1 => /private/tmp/caddy-20200823-12564-1btzrty/caddy-2.1.1 on macOS Big Sur v11.0 Beta (20A5354i) .

@quai20
Copy link

quai20 commented Sep 2, 2020

If you downloaded/cloned the repo, try copying "dist" directory in the "demo" directory and change the path in demo.html (../dist/leaflet-xxxx -> dist/leaflet-xxxx). I remember having some issues with the relative path.
I use "caddy" as a web server

Could you give me some info on how to set on caddy and run demo ?
I have already download the repo, copied dist directory in the demo and changed the path in demo.html .
I am using v2.1.1 => /private/tmp/caddy-20200823-12564-1btzrty/caddy-2.1.1 on macOS Big Sur v11.0 Beta (20A5354i) .

Hi @estamos , do you have caddy working ? If so, just go to the demo directory and launch a web server (https://caddyserver.com/docs/getting-started)

@mylesmc123
Copy link
Contributor

mylesmc123 commented Jan 4, 2021

@AmirFarhan
@quai20

I wanted to re-visit this issue, I'm having trouble getting to demo to run. Its surely just user error, but any help would be appreciated.

I am running from VS Code in Debian Linux (Mint 20) and have tried a few things to get up and running:

  • Used Git Clone to get a copy of the GitHub repository.

  • Copied the ./dist folder in ./demo/dist.

  • Updated demo.html:

<link rel="stylesheet" href="/dist/leaflet-velocity.css" />
<script src="/dist/leaflet-velocity.js"></script>
  • Installed Caddy

  • Created Caddyfile and placed in a clone of the Git Repo's root directory:

:2015 {
    root * /demo
}
  • Started Caddy web server in the Root directory.

  • From root directory run: `npm run watch'.

The result of this sequence just produces an empty page. Can you offer any guidance on getting the demo loaded to the Caddy web server properly?

@mylesmc123
Copy link
Contributor

Got it by changing moving the Caddyfile the demo directory and changing the Caddyfile to:

:2015 {
    file_server browse
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants