Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host Snazzle publicly somewhere. #8

Open
thatkusari opened this issue Jul 24, 2023 · 24 comments
Open

Host Snazzle publicly somewhere. #8

thatkusari opened this issue Jul 24, 2023 · 24 comments
Labels
enhancement New feature or request

Comments

@thatkusari
Copy link

I think it would be easier to get this up on vercel instead of going to my computer to download and run the commands to get the repository up locally

@redstone-dev
Copy link
Collaborator

Maybe, we'll see about that. Can Vercel host Flask projects? If not we could try Replit, the Hacker yearly plan equates to about $6.16 a month (CAD) so I can have a boosted always-on repl for Snazzle

@EngineerRunner
Copy link
Collaborator

the problem with hosting it on replit is that it can't access scratch's api (confirmation needed), so you'd have to use scratchDB. however, whenever you need to get project details, sometimes the project just isn't on scratchDB and it falls back to having no title or any other info

@ajskateboarder
Copy link
Contributor

Maybe, we'll see about that. Can Vercel host Flask projects? If not we could try Replit, the Hacker yearly plan equates to about $6.16 a month (CAD) so I can have a boosted always-on repl for Snazzle

Vercel has an experimental Python runtime, but hosting in the cloud can be pretty inconsistent lol

You could also split up the project into an API and frontend so you can host the API on a local server while the frontend goes on GitHub Pages or something

@EngineerRunner
Copy link
Collaborator

the problem with hosting it on replit is that it can't access scratch's api (confirmation needed),

confirmed, replit is completely* blocked from scratch's api

apart from cloud variables if logged in with a session id because why not

@Darth-Ness
Copy link
Collaborator

What about GitHub Codespaces? Never used that before, but might be worth looking into.

@EngineerRunner
Copy link
Collaborator

EngineerRunner commented Jul 26, 2023

github codespaces is definitely not designed for 24/7 hosting of a web app, and it would end up costing over $130 a month for the base plan with 20gb of storage.

maybe pythonanywhere would be good? we would be able to use scratch's api (unlike on replit), and it'd only be $5/$6.61 CAD/£3.87 monthly for the Hacker plan.

@redstone-dev
Copy link
Collaborator

You could also split up the project into an API and frontend so you can host the API on a local server while the frontend goes on GitHub Pages or something

The problem with this is that the frontend and backend are really closely integrated thanks to Flask. Without Flask the website doesn't function

@EngineerRunner EngineerRunner added the enhancement New feature or request label Jul 26, 2023
@EngineerRunner EngineerRunner changed the title Vercel for hosting Snazzle Host Snazzle publicly somewhere. Jul 26, 2023
@redstone-dev
Copy link
Collaborator

I actually have a computer i could host somewhere

YOU ARE THE BEST

@davidtheplatform
Copy link
Contributor

I’m hosting it at snazzle.davidtheplatform.eu.org

@redstone-dev
Copy link
Collaborator

this is on snazzle.davidtheplatform.eu.org and snazzle-repl.redstonescratch.repl.co

@dynamixbot
Copy link
Member

this is on snazzle.davidtheplatform.eu.org and snazzle-repl.redstonescratch.repl.co

none of them work

@dynamixbot dynamixbot reopened this Apr 28, 2024
@dynamixbot
Copy link
Member

Maybe, we'll see about that. Can Vercel host Flask projects? If not we could try Replit, the Hacker yearly plan equates to about $6.16 a month (CAD) so I can have a boosted always-on repl for Snazzle

we can try pythonanywhere

@Sid72020123
Copy link

Sid72020123 commented Apr 28, 2024

You can use https://deta.space

Edit: But it has a maximum limit of 20 seconds to process each request, i.e., if it takes more than 20 seconds to load the data and render the flask template, the request will be closed!

@davidtheplatform
Copy link
Contributor

You can use https://deta.space

Edit: But it has a maximum limit of 20 seconds to process each request, i.e., if it takes more than 20 seconds to load the data and render the flask template, the request will be closed!

Deta.space is kind of weird and won’t work for this. Basically the only way to use it is if every user has a deta.space account

I could turn on snazzle.davidtheplatform.eu.org in a few hours

@Sid72020123
Copy link

You can use https://deta.space
Edit: But it has a maximum limit of 20 seconds to process each request, i.e., if it takes more than 20 seconds to load the data and render the flask template, the request will be closed!

Deta.space is kind of weird and won’t work for this. Basically the only way to use it is if every user has a deta.space account

I could turn on snazzle.davidtheplatform.eu.org in a few hours

No, that's not true. The app can have public endpoints where a user can make requests without even creating an account: https://deta.space/docs/en/build/faq#why-is-an-unauthorized-error-thrown-when-i-try-to-access-my-app

@davidtheplatform
Copy link
Contributor

You can use https://deta.space
Edit: But it has a maximum limit of 20 seconds to process each request, i.e., if it takes more than 20 seconds to load the data and render the flask template, the request will be closed!

Deta.space is kind of weird and won’t work for this. Basically the only way to use it is if every user has a deta.space account
I could turn on snazzle.davidtheplatform.eu.org in a few hours

No, that's not true. The app can have public endpoints where a user can make requests without even creating an account: https://deta.space/docs/en/build/faq#why-is-an-unauthorized-error-thrown-when-i-try-to-access-my-app

Huh, I didn’t know that. Deta.space would probably be the best place for hosting then

@Sid72020123
Copy link

You can use https://deta.space
Edit: But it has a maximum limit of 20 seconds to process each request, i.e., if it takes more than 20 seconds to load the data and render the flask template, the request will be closed!

Deta.space is kind of weird and won’t work for this. Basically the only way to use it is if every user has a deta.space account
I could turn on snazzle.davidtheplatform.eu.org in a few hours

No, that's not true. The app can have public endpoints where a user can make requests without even creating an account: https://deta.space/docs/en/build/faq#why-is-an-unauthorized-error-thrown-when-i-try-to-access-my-app

Huh, I didn’t know that. Deta.space would probably be the best place for hosting then

Yes! But it has a 20 second limit, i.e., if a specific page/endpoint takes more than 20 seconds to return a response, the request gets closed. In Snazzle, maybe requesting the forum endpoints may be an issue.

@Sid72020123
Copy link

I personally use a free service called Bot-Hosting to host some APIs. It's fully free (You need to wait for the first day after registration as you need to get 10 coins everyday for free by completing Captcha puzzles).

BTW the server of SUI API is hosted there.
You need a Discord account to use that service

@davidtheplatform
Copy link
Contributor

You can use https://deta.space
Edit: But it has a maximum limit of 20 seconds to process each request, i.e., if it takes more than 20 seconds to load the data and render the flask template, the request will be closed!

Deta.space is kind of weird and won’t work for this. Basically the only way to use it is if every user has a deta.space account

I could turn on snazzle.davidtheplatform.eu.org in a few hours

snazzle.davidtheplatform.eu.org should work now.

@dynamixbot
Copy link
Member

dynamixbot commented May 23, 2024

We could try using Github Actions to run Snazzle on a public instance?

@NotFenixio
Copy link
Contributor

We could try using Github Actions to run Snazzle on a public instance?

This is a bad idea for a series of reasons.

@dynamixbot
Copy link
Member

We could try using Github Actions to run Snazzle on a public instance?

This is a bad idea for a series of reasons.

wut

@davidtheplatform
Copy link
Contributor

I'm going to close this as snazzle.davidtheplatform.eu.org works

@dynamixbot
Copy link
Member

I'm going to close this as snazzle.davidtheplatform.eu.org works

we still need a proper domain, since snazzle.davidtheplatform.eu.org is superr long

@dynamixbot dynamixbot reopened this Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

10 participants