How to use Spaces in Desktop App development

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.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.