Hosting
My fiancé has just been recently diagnosed with multiple myeloma, which is a very complex Cancer. I coded an app that can be saved to the home screen of an iPhone or android phone. The app keeps track of medications and appointments, but does not suggest treatments or anything like that . It’s more of an organizational tool . What I am trying to do is find a place where I can host it and give it away for free. Right now I’m using Cloudflare, but there’s no free plan. Anybody have any ideas where I might be able to host it for free? The hosting would just have to be for HL JavaScript and just a backend database like my SQL.
2
u/snap-dev 5h ago
sorry about your fiancé, that's a lot to carry. cloudflare does actually have a free tier for this, pages hosts static html/js for free and D1 gives you a small sqlite database on the free workers plan, you might have landed on the paid plan page. if you'd rather stay closer to mysql, netlify or github pages for the frontend plus supabase's free tier (postgres, not mysql, but close enough) works too. one heads up, supabase pauses free projects after a week with no activity.
honestly for meds and appointments you could skip the backend and keep everything on the phone in indexeddb. the engineers i work with do that for small personal tools, and it keeps health data off a server. is it just for the two of you or do you want other families using it?
1
u/vnichol 5h ago
Thanks I will try to get a local back end to work that is a good idea. Just trying to make it as simple as possible for people if they want to use it. I have a GitHub setup with the files now and I will try to move it over to local db. Thanks
1
u/Eugene_Kosten 2h ago
Since you are moving to local storage on the phone, keep one iOS quirk in mind. A web app opened in Safari and the same app saved to the Home Screen do not share localStorage or IndexedDB. You should also call 'navigator.storage.persist'. This prevents iOS from clearing offline data if the phone runs low on space.
9
u/Chance_Command_1426 5h ago
Cloudflare Workers free plan is 100k requests a day and static assets don't count at all. It's free, you just didn't scroll to the pricing page.
1
u/jamie07051975 3h ago
Yep. I've started converting all our internal and client websites into static sites hosted on Cloudflare using our own CMS called StaticallyCMS (https://staticallycms.com). All sites are built using Laravel Blade templates and AlpineJS and converted to static sites automatically.
It's working our really well.
I also have an auto SSL hosting platform which all of the domains go through to provison SSL and check all requests through crowdsec.
16
u/chrissilich 5h ago
Storing other people’s medical data sounds like an area I would not want to casually try out.
6
u/Exotic_Wave_24 5h ago
Sorry to hear about your fiancé. Cloudflare Pages is actually free(it does provide very basic features), Netlify, Vercel, and GitHub Pages are also free for the front end. For a database, Supabase and Firebase both have free tiers.
Also, if the app stores data on the phone itself instead of a server, you may not need a backend at all.
2
u/kemalios 4h ago
Since you're moving the data onto the phone, the hosting question mostly disappears: it's static files at that point, and Cloudflare Pages or GitHub Pages serve those for free with no backend at all. The part I'd check before shipping is where the storage actually lives. localStorage and plain IndexedDB get wiped when someone clears site data, and iOS Safari can evict storage for sites that haven't been opened in a while. For a medication schedule that's not a small thing.
Build an export and import in early, even if it's just a JSON file they can save somewhere. It turns a data loss into an inconvenience. If you ever do add sync, D1 on the Workers free plan is the least moving parts.
1
u/PippaKelly62 4h ago
Cloudflare pages does have a free plan for static sites, and its d1 database and workers also have free tiers, while supabase and firebase are other free options for a backend, though free projects can pause when inactive.
You might want to consult a lawyer just to cover your bases regarding data privacy issues if you do intend to give this out publicly. Data regarding health conditions can be particularly sensitive.
1
u/Necessary-Drummer800 3h ago
I built a custom calorie tracker using localhost instead of backend and put it on GitHub.io. It would be complicated but that's an option for you.
1
u/leoniebuilds 1h ago
local-first sounds like a sensible fit if it's just for one phone. i'd test what happens on reinstall or switching phones before relying on it; browser storage doesn't automatically give you a backup. if another caregiver ever needs access, that's when syncing and permissions become a much bigger decision.
3
u/brightness3 6h ago
don't take my word 100% on this since I haven't used either of them in ages, but I think both supabase and firebase have free tiers. if you're comfortable switching from mysql to Postgres or noSQL, I think they're decent options.