How to use Spaces in Desktop App development

February 16, 2018 194 views
Applications Object Storage

I've almost finished building my desktop applications in electron.

In the final process i want to send certain input fields from the electron application to a server. But now i'm looking into digital ocean's object storage and it seems like this might be even better for this (correct me if i'm wrong ) than hosting my own LAMP stack or own DB environment.

Now the actual question, since my code is going to be opensource but i want to include spaces as a backend syncing service is there a way of giving a user of the application access to the code and preventing the user from just abusing the access to the objectstorage ?
Or am i over thinking this ?

If you have any great tutorials on using spaces with some javascript examples those are more than welcome.

1 Answer

Spaces Object Storage is great for storing static content like logs and media, but it won't replace a traditional database as that isn't it's intent. So if you have the need for something outside of storing static content you will still need some sort of backend DB.

In regards to your specific code / access question you can open source your code but provide a blank default config file which doesn't specify your API key for access.

This way people can look at, use the code as they please, and configure their own API key for storing files to Spaces.

Have another answer? Share your knowledge.