silexlabs / cloud-explorer

*this version is deprecated, see CloudExplorer2* File manager for your users cloud services such as dropbox, google drive and FTP
http://cloud-explorer.org
52 stars 23 forks source link

CE giving error when I hit http://localhost:6805/cloud-explorer #23

Closed michelle-tech closed 10 years ago

michelle-tech commented 10 years ago

Hi,

I am new to Angular and trying to write client for cloud. I found your solution which is very interesting and very useful.

I have set all the things as suggested in https://github.com/silexlabs/cloud-explorer.

When I run the node server/apiserver from linux or windows, it starts saying "Listening on 6805". But when I try the URL http://localhost:6805/cloud-explorer in browser, it says "Cannot GET /cloud-explorer". I tried to access only "http://localhost:6805" but did not achieve any thing.

Please help me to resolve the issue. I am not able to understand where I am wrong.

~Michelle

zabojad commented 10 years ago

Hi Michelle,

Yes it seems we have a problem with the unifile dependency... Do you also have errors with the unifile package when running nmp install ?

I'll see what I can do and come back to you right after it...

Thomas

michelle-tech commented 10 years ago

No, I have not face any error while npm install.

Will also try to debug the issue.

Please let me know if you get any solution. ~Michelle

zabojad commented 10 years ago

Michelle,

I just re-ran "npm install unifile" and unifile finally installed successfuly...

So, now about your problem, it's more because of the readme that is not clear enought... The url "http://localhost:6805/cloud-explorer/", is actually the endpoint of the unifile server (nodejs side) while cloud-explorer is 100% client side. This url is just a web service endpoint.

So, I supose you want to integrate cloud-explorer in a project of yours. To do so, you'll have to look at the example that can be found in /lib/app/index_popup.html and can be tested at the url "http://127.0.0.1:6805/cetest/index_popup.html". This is a basic example of cloud explorer integration into a web page. You'll have to do something similar in your web app in order to integrate cloud explorer in it...

Note that at the moment, I haven't been working on this project for some time. But I'll come back to it very soon (February-March) to perform a full refactoring that will cover few things like : getting rid of the angularjs dependencies, add tests, clear the doc, ... However, this should not prevent you from using it from now as the API should remain unchanged...

Let me know how it goes at your end...

Cheers,

Tom

michelle-tech commented 10 years ago

Hi Tom,

Thank you so much for all your support and cooperation. Finally with your help, I manage to make it working using following url http://127.0.0.1:6805/cetest/index_popup.html#

To get /cloud-explorer work, I need to put url like this http://127.0.0.1:6805/cloud-explorer/index_popup.html# If I do it with only /cloud-explore/index.html, it doesn't work.

Anyways, I realized the problem which I had at my environment.

  1. I use Ubuntu 13.04, but was not having dropbox package installed on to it.
  2. Though I am not sure, the above one is required or not, but initially I did run my service with http://127.0.0.1:6805/api/v1.0/dropbox/connect/ and fetched dropbox token.
  3. Confirmed that the unifile service (server/api-server.js) is working perfectly fine.
  4. Then went through couple of services of dropbox like http://localhost:6805/api/v1.0/dropbox/exec/ and others. When I got everything working in JSON responses, it made me sure that your explorer will also run.
  5. Then I hit the url given by you, and I was able to access everything linked in my dropbox.

I have small query -> Is your code tightly linked with api-server.js. I mean, if I write/modify angularjs code to directly access the dropbox using rest apis without nodejs or any thing in between will it work? If not what would be the best path to achieve this?

~Michelle

lexoyo commented 10 years ago

I use Cloud Explorer in Silex, a website builder http://www.silex.me

I'm curious about what others do with it? @michelle-tech what do you use it for?

zabojad commented 10 years ago

Hey Michelle !

"index_popup.html" is just a example of how to integrate cloud-explorer in a web page/application. You probably should have your own custom "index_popup.html" with your own buttons and where you would call the cloud-explorer API functions to open/close the cloud explorer popup, upload/download files from the cloud, etc...

By the way, what do you use cloud-explorer for ?

Then, about using cloud-explorer to access directly the DB API (without the unifile server layer in between), I guess it should be possible but it would need some dev on cloud-explorer side. If it's something you need, please feel free to contribute. Also, if it's a business need, there is also the possibility I do it for you as a paid service.

Let me know what you think.

Cheers,

Thomas