Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Missing Files? #2

Closed
mwalkertech opened this issue Jun 19, 2014 · 4 comments
Closed

Missing Files? #2

mwalkertech opened this issue Jun 19, 2014 · 4 comments

Comments

@mwalkertech
Copy link

Good morning, I've been looking at Aperture JS to do a quick evaluation. I've been around your website and it looks like a great tool. I have downloaded and built it and have run into a few problems and was hoping for a little bit of help.

I've had a few issues running the examples in the version of Aperture JS that I downloaded. First, I couldn't run them in Chrome. I didn't see the example thumbnails on the left to click on in the "API Examples" page, so I opened the debugger. I saw this error:
"XMLHttpRequest cannot load file:///D:/utils/aperturejs-master/aperture/aperture-examples/src/main/javascript/examples/examples.json. Received an invalid response. Origin 'null' is therefore not allowed access."
I can open that file from my browser, the link is correct. After some quick research, this is apparently an issue that sometimes happens on Chrome. Since I'm trying to do a quick evaluation of ApertureJS, so I didn't investigate this issue closely. I just switched to Firefox, which did display the example thumbnails on the left-hand side.

Once I started running in firefox, I found that I seemed to be missing some files. First, I found that I was missing these files from ..\aperture\aperture-examples\src\main\javascript\index.html:

<script src="../aperture.js"></script> <script src="../rest/config.js"></script>

When I went to look in github I didn't see them in there either. I manually downloaded these through your website through the debugger and added them to the correct locations in the file structure. Now I'm running into stylesheet issues when trying to run the examples. Did I miss a step? I downloaded and built the project in maven. When I run from either the src or the target directories I'm having the same issues. Please let me know what steps to take.

One final question. We're particularly interested in the Node-Links. What is the largest number of nodes/edges that you have tested in ApertureJS?

Thank you!
Meredith

@dgauldie
Copy link

Hi Meredith,

I’m sorry to hear that you are having trouble getting the aperture examples page to work. Before I can help you, it would be handy to know the steps you performed to build and run the aperture project.

Typically, the steps for showing the examples are as follows:

  1.  Navigate to the aperturejs root directory (aperture) and type “mvn clean install”
    
  2.  Navigate to aperture-server\target directory
    
  3.  You now have 2 options
    
  4.  There should be a .war file named aperture-server-X.X.X-SNAPSHOT.war. Copy that war file into the webapps directory of your preferred webserver (usually tomcat or jetty) and rename it to “aperture.war”
    
  5.  If you are using eclipse, you can create a new run configuration by setting the base directory to the aperture server directory and the goal to “package jetty:run”
    
  6.  Type “localhost:8080/aperture” in your web browser
    

Hope this helps in building an evaluating ApertureJS and please feel free to ask anymore questions.

Best regards,

David Gauldie

Senior Visualization Developer

Oculus Info Inc.

2 Berkeley St, Suite 600

Toronto, ON M5A 4J5

tel: 416 203 3003 x 312

fax: 416 203 0646

mob: 647 993 4285

From: mwalkertech [mailto:notifications@github.com]
Sent: June-19-14 10:33 AM
To: oculusinfo/aperturejs
Subject: [aperturejs] Missing Files? (#2)

Good morning, I've been looking at Aperture JS to do a quick evaluation. I've been around your website and it looks like a great tool. I have downloaded and built it and have run into a few problems and was hoping for a little bit of help.

I've had a few issues running the examples in the version of Aperture JS that I downloaded. First, I couldn't run them in Chrome. I didn't see the example thumbnails on the left to click on in the "API Examples" page, so I opened the debugger. I saw this error:
"XMLHttpRequest cannot load file:///D:/utils/aperturejs-master/aperture/aperture-examples/src/main/javascript/examples/examples.json file:///D:utilsaperturejs-masterapertureaperture-examplessrcmainjavascriptexamplesexamples.json . Received an invalid response. Origin 'null' is therefore not allowed access."
I can open that file from my browser, the link is correct. After some quick research, this is apparently an issue that sometimes happens on Chrome. Since I'm trying to do a quick evaluation of ApertureJS, so I didn't investigate this issue closely. I just switched to Firefox, which did display the example thumbnails on the left-hand side.

Once I started running in firefox, I found that I seemed to be missing some files. First, I found that I was missing these files from ..\aperture\aperture-examples\src\main\javascript\index.html:

When I went to look in github I didn't see them in there either. I manually downloaded these through your website through the debugger and added them to the correct locations in the file structure. Now I'm running into stylesheet issues when trying to run the examples. Did I miss a step? I downloaded and built the project in maven. When I run from either the src or the target directories I'm having the same issues. Please let me know what steps to take.

One final question. We're particularly interested in the Node-Links. What is the largest number of nodes/edges that you have tested in ApertureJS?

Thank you!
Meredith


Reply to this email directly or view it on GitHub #2 . https://github.com/notifications/beacon/4194153__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxODgwNzU4NywiZGF0YSI6eyJpZCI6MzUwNjI3MjN9fQ==--6fb82d0dbed4172b72199e9ffa86083545360173.gif

@mwalkertech
Copy link
Author

David,
Thank you so much for your quick response. This was exactly what I needed. I ran it through eclipse and it works beautifully. I'm sorry for bothering you with that question, did I miss some documentation or a getting started guide somewhere that walks a new user through those steps? Can you please point me where I should look for documentation to move forward? I want to start working with the Node-Links visualizations with our own graph data. In the meantime, I'll just follow the Les Mis example and add my data set in a similar fashion.

Thank you!
Meredith

@dgauldie
Copy link

Hi Meredith,

We are currently working on updating our documentation for aperturejs. So don't worry if you missed something on github. However, we have extensive documentation at www.aperturejs.com which should help you with your aperturejs development.

Regards,

David Gauldie

Sent from my iPhone

On Jun 19, 2014, at 2:00 PM, mwalkertech notifications@github.com wrote:

David,
Thank you so much for your quick response. This was exactly what I needed. I ran it through eclipse and it works beautifully. I'm sorry for bothering you with that question, did I miss some documentation or a getting started guide somewhere that walks a new user through those steps? Can you please point me where I should look for documentation to move forward? I want to start working with the Node-Links visualizations with our own graph data. In the meantime, I'll just follow the Les Mis example and add my data set in a similar fashion.

Thank you!
Meredith


Reply to this email directly or view it on GitHub.

@robharper
Copy link
Contributor

Hi Meredith, we just pushed some updated documentation the covers getting started in a little more detail. We also created a "bootstrap" project to help getting off the ground a little easier. You can find it at https://github.com/oculusinfo/aperturejs-bootstrap. Hope this helps!

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

No branches or pull requests

3 participants