# Local installation with cloud storage?

Hi there,

I'm not going to answer the suggested questions since I don't believe they are relevant for the issue I'd like to discuss. (@forum master: I hope I'm posting to the right forum category...)

I'd like to run a completely local Snap! installation including cloud storage. I've got Snap! up and running (being served by Apache), but it seems that accessing the official Berkeley cloud is not possible from such a local installation -- which is a bit disappointing since the documentation at https://github.com/jmoenig/Snap/blob/master/OFFLINE.md only mentions "using Snap! offline in the browser by opening the snap.html file locally" as being prohibitive for accessing the cloud.

I'd be willing to also install the cloud backend locally, but there seem to be no real installation instructions available. Furthermore, I wouldn't know how to configure the local Snap/ installation to use the local rather than the official cloud.

So... is there any chance I might eventually being able to accomplish what I'm after?

Cheers --
Torsten

Hi, and welcome to the forum!

"using Snap! offline in the browser by opening the snap.html file locally" as being prohibitive for accessing the cloud.

That's true if you run Snap! locally by just "double-clicking" on the snap.html file, but I believe if you run a local webserver that serves Snap! at localhost:8080 or localhost:80, you should be able to access the cloud backend normally.

As per:

I'd be willing to also install the cloud backend locally, but there seem to be no real installation instructions available.

You won't need to walk that path, but there are installation instructions in the cloud repo, and pretty detailed:

Bromagosa,

I'm not running Snap! on localhost, but on a (currently: publicly accessible) domain with Letsencrypt-based TLS at port 443. Maybe accessing the cloud from a non-localhost address on a port other than 80 or 8080 poses a problem?

You won't need to walk that path, but there are installation instructions in the cloud repo, and pretty detailed:

D'oh - how could I have missed that? Thanks for pointing out...

Still the question remains if it was somehow possible to make a local Snap! installation access a cloud other than the official one (if this really was necessary).

Cheers --
Torsten

Hi Torsten,

As Bernat has shown, snapCloud github repo has all the info. You can see at the cors.lua file all the public domains allowed to use SnapCloud.

If you build your own cloud, you will set your own public domains.

Joan

Hi everyone,

thanks for all your advice! However, I've decided that getting a completely local snap installation up and running is too much hassle for me, so I guess I'll stick with berkeley after all. This should be sufficient to fulfill my immediate requirement which is to enable my kids to show off their self-made Snap game in their computer class at school. I just had some mild privacy concerns about using some remote service for this purpose, but well... so what.

Thanks again, and have a good night (bedtime for me) --
Torsten

P.S. I'd love to mark both bromagosa's and jguille2's comment as solution, but unfortunately this seems not to be possible...

We're good guys. Nobody is scanning your kids' project to sell advertising. Honest.

But also, the easiest way to use Snap! offline is to save to your local disk, and then you can distribute the file however you want, Dropbox or email or whatever.

1 Like