Through sheer luck and even more stubborness I somehow ended up with a very small web game (in the realm of games like Wordle) in pure Typescript.
I want the state of the game to be shareable via following process: Player A presses save -> a JSON is saved onto my server -> A link is generated and shown to Player A -> Player A shares that link with Player B -> Player B clicks that link -> The game is loaded with the state of Player A
So the only interaction between front- and backend would be saving and loading that one JSON. My problem is: To me, the web might as well be magic, and I'm a bit overwhelmed with how I can get the ball rolling.
I think my options are:
A) Amazon Lambda + a S3 bucket (appeareantly this is somehow the cheapest and the most expensive option at the same time?)
B) Renting my own VPS and interacting with it through a REST API (I think I would need a managed server rather than a web hosting option, right?)
C) Something like Google Firebase/AWS Amplify
I feel like option B would be the old-school way of doing things and a good way for me to finally overcome my web-phobia, but do I really need to pay 50€/m to host a game that probably nobody every will play?
[1] https://developers.cloudflare.com/pages/platform/functions/
[2] https://developers.cloudflare.com/workers/learning/how-kv-wo...
[3] https://pages.cloudflare.com
Cloudflare offers generous free tiers, so you shouldn't have to pay anything.
I find Cloudflare's ecosystem much, much easier than all of the alternatives for simple projects. It's fast, the UIs are nice, the docs are great, and everything is usually deployable straight through GitHub and simple configs.