developit / dropfox

🦊 📂 A dropbox client powered by Preact, Electron and Photon
MIT License
121 stars 15 forks source link

Add clean command #1

Closed fdaciuk closed 8 years ago

fdaciuk commented 8 years ago

Hey @developit! Are you kidding me? One more awesome project! Nice job :D

I needed to add a simple command before run npm start, because I was getting this error:

> dropfox@1.0.0 build:assets /code/dropfox
> ncp src/assets build/assets

There were errors during the copy.
Error: ENOENT: no such file or directory, mkdir '/code/dropfox/build/assets'

I think it doesn't work on Windows (at least, not in default cmd). I don't know what we can do in this case. Maybe use a NodeJS script to do the same thing. What do you think?

developit commented 8 years ago

Hmm - I haven't tested this on Windows yet. I'm thinking there are some file paths that need to be made dynamic. Are you still getting this error after adding the clean command?

fdaciuk commented 8 years ago

No. After clean command, the app works well =)

developit commented 8 years ago

oh wow, that's actually a huge surprise for me hahaha

fdaciuk commented 8 years ago

Actually, I couldn't make the app to work yet. Just build it haha xD I'm getting a 400 error =/

At the first load, the screen doesn't load anything:

selection_180

After to press Ctrl + R, the interface is shown, but with a 400 error in a popup:

selection_181

developit commented 8 years ago

Ahh, that's the API Key being mismatched to the redirect URI. In the Dropbox API console, make sure you have the URL https://dropfox.firebaseapp.com/dropbox/oauth_receiver.html whitelisted.

fdaciuk commented 8 years ago

And now it works! :dancer: :dancer: :sparkles:

developit commented 8 years ago

WOOT!

developit commented 8 years ago

Now we just need @connors to make a photon variant that fits in a bit better on Windows & Linux.