Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Selfhosted
  3. How can I host a small api/database accessable from a phone app as cheap/easily as possible?

How can I host a small api/database accessable from a phone app as cheap/easily as possible?

Scheduled Pinned Locked Moved Selfhosted
selfhosted
35 Posts 27 Posters 140 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A [email protected]

    HIPAA (not hippa) is not even remotely applicable.

    Cheap and easy are in opposition here. Which matters more? There are symptom and medication apps already that would be easy and available right now. And you don't need to do tech support for family.

    V This user is from outside of this forum
    V This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #12

    Well it's also a learning project as through a series of events I am technically a software developer in job title who got thrown into a c# code base with databases after doing a python boot camp for 9 weeks and have no mentor to tell me what I'm doing wrong on professional projects.

    A 1 Reply Last reply
    0
    • H [email protected]

      If it is for home use, why not go with a raspberry pi (or similar, there are lots of cheaper alternatives like it) which is only accessible from the local network and not from the internet?

      If access through the internet is needed, you can use one of many free dyndns services.

      V This user is from outside of this forum
      V This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #13

      Hmm...i do have a raspberry pi that isn't being used... Since it's asp.net should be Linux compatible... Not a bad idea

      1 Reply Last reply
      0
      • cochise@lemmy.eco.brC [email protected]

        If you don't have strong privacy concerns, you can use the free tier vps from oracle cloud or Google cloud. They are small, but are more than enough for this load.

        V This user is from outside of this forum
        V This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #14

        I didn't know they had free tiers... I'll look into it

        P 1 Reply Last reply
        0
        • ? Guest

          @vrek have you looked at https://turso.tech/ or https://supabase.com/

          V This user is from outside of this forum
          V This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #15

          Both good suggestions, thanks for the ideas

          1 Reply Last reply
          0
          • ? Guest

            I'd use something that already exists:

            • https://life-notes.fr/
            • https://github.com/babybuddy/babybuddy
            • https://github.com/BabyTracker/baby-tracker

            The focus of the latter two is slightly off, but it would work.

            Actually, I'd probably not add a use-specific thing unless I needed something specific it offered. I'd just pop up another page on our shared wiki to track things, or put it in a synced note app.

            V This user is from outside of this forum
            V This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #16

            Yes but for example for seizures I want a simple form, not having to type in entries. Especially for siezures, it's normally a busy event of caring for him, having to add a seizure taking more than a minute means it probably won't be used.

            1 Reply Last reply
            0
            • V [email protected]

              So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

              I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

              What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

              U This user is from outside of this forum
              U This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #17

              Username checks out

              1 Reply Last reply
              0
              • V [email protected]

                So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

                I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

                What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

                T This user is from outside of this forum
                T This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #18

                If you want to self-host, I recommend a used business thin client, docker + docker-compose, and Tailscale for access away from home if needed. Don’t forget to dump & back up nightly.

                Or you could use hosted services, neon.tech and turso both offer really generous free tiers for SQL databases.

                Or you could use a notebook and pen. Sometimes simplicity is king.

                1 Reply Last reply
                0
                • V [email protected]

                  So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

                  I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

                  What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

                  sxan@midwest.socialS This user is from outside of this forum
                  sxan@midwest.socialS This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #19

                  Do you need a web app, or would a mobile app do? There are a number of medication trackers and one specifically for tracking stuff like this called Track & Graph. The DB export is a SQLite DB, which can be SyncThing'ed to a computer and worked with with whatever rolls you like.

                  N 1 Reply Last reply
                  0
                  • V [email protected]

                    Well it's also a learning project as through a series of events I am technically a software developer in job title who got thrown into a c# code base with databases after doing a python boot camp for 9 weeks and have no mentor to tell me what I'm doing wrong on professional projects.

                    A This user is from outside of this forum
                    A This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #20

                    Ah - I get that. You have my sympathies.

                    A personal project like that would be a great way to train/get experience then. But do realize that it becomes a lot more complicated once you have people other than yourself relying on your application. Suddenly up-time becomes a lot very important and up-time is hard. End-users, even friendly ones, get very frustrated when you say "try now please" a lot. They'll just stop using it.

                    1 Reply Last reply
                    0
                    • V [email protected]

                      So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

                      I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

                      What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

                      ? Offline
                      ? Offline
                      Guest
                      wrote on last edited by
                      #21

                      Why not Home Assistant?
                      You can log seizures via buttons on the UI (web or mobile app), or via an NFC tag, have counters and stats.
                      Counters can also be used for medication tracking. More advanced solution exist via custom integrations, e.g this.

                      plutoniumacid@lemmy.worldP 1 Reply Last reply
                      0
                      • V [email protected]

                        So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

                        I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

                        What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

                        caoimhinr@lemmy.worldC This user is from outside of this forum
                        caoimhinr@lemmy.worldC This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #22

                        A VPS on Hetzner with 2 shared vCPUs, 4GB ram and 40GB storage costs me less than €5 per month. I use it for services that are more "critical" compared to what runs on my home server.

                        1 Reply Last reply
                        0
                        • vk6flab@lemmy.radioV [email protected]

                          Google Sheets will be a simple solution you can do for free.

                          The app "Track & Graph" is another.

                          I have been logging all my medical events using Tasker and a Google Calendar. Analysis is manual using graphviz.

                          undulyunruly@lemmy.worldU This user is from outside of this forum
                          undulyunruly@lemmy.worldU This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #23

                          This is c/selfhosted

                          vk6flab@lemmy.radioV 1 Reply Last reply
                          0
                          • V [email protected]

                            So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

                            I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

                            What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

                            O This user is from outside of this forum
                            O This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #24

                            Maybe use a filesystem and syncthing this way? https://github.com/39aldo39/DecSync

                            Or you could use the free tier of some PaaS like
                            https://render.com/docs/free if you prefer a traditional approach

                            1 Reply Last reply
                            0
                            • V [email protected]

                              So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

                              I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

                              What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

                              ? Offline
                              ? Offline
                              Guest
                              wrote on last edited by
                              #25

                              I’m using a free web host plan from freehostia (chocolate plan), an SQLite database and a single php file from the github repo below to provide me api access to my database tables. I previously used the web hosts MySQL database.

                              Create some QR codes or NFC tags for specific medication/seizure events to make logging easy. For visibility you can create some reports and you’ve got yourself a solution.

                              I use this setup to manage and log my backup tape rotations at work.

                              https://github.com/mevdschee/php-crud-api

                              1 Reply Last reply
                              0
                              • V [email protected]

                                I didn't know they had free tiers... I'll look into it

                                P This user is from outside of this forum
                                P This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #26

                                I've read very bad experiences about Oracle free tier VPS, like VPS disappeared for good with all the data.

                                1 Reply Last reply
                                0
                                • sxan@midwest.socialS [email protected]

                                  Do you need a web app, or would a mobile app do? There are a number of medication trackers and one specifically for tracking stuff like this called Track & Graph. The DB export is a SQLite DB, which can be SyncThing'ed to a computer and worked with with whatever rolls you like.

                                  N This user is from outside of this forum
                                  N This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by
                                  #27

                                  This is what I was thinking.

                                  Syncthing will be the quickest to set up.

                                  There's a potential for collisions but that would likely be manageable.

                                  1 Reply Last reply
                                  0
                                  • V [email protected]

                                    So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

                                    I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

                                    What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

                                    E This user is from outside of this forum
                                    E This user is from outside of this forum
                                    [email protected]
                                    wrote on last edited by
                                    #28

                                    You can get a VPS on Vultr for $5 a month that’ll be plenty for your use case. For security look into mTLS. Web servers like Caddy support it pretty easy. You put a certificate on you and your wife’s phones and only you will be able to connect to your endpoint.

                                    1 Reply Last reply
                                    0
                                    • undulyunruly@lemmy.worldU [email protected]

                                      This is c/selfhosted

                                      vk6flab@lemmy.radioV This user is from outside of this forum
                                      vk6flab@lemmy.radioV This user is from outside of this forum
                                      [email protected]
                                      wrote on last edited by
                                      #29

                                      The boundary of where to host what, is not fixed. You cannot host the internet at home. Where people sit on the spectrum varies depending on skill, resources and need.

                                      I highlighted several options that provide a solution for someone with limited skills and resources.

                                      You could host a CALDAV server or a next cloud at home and use the suggestions I provided, or you could use those hosted by someone else.

                                      My answer was to provide ideas, not a how-to guide, answering, in my opinion, exactly what OP was looking for.

                                      That it doesn't match your idea about solving the problem tells you that there are many ways to solve software problems. My suggestions had a low barrier to entry.

                                      What's your recommendation for OP?

                                      1 Reply Last reply
                                      0
                                      • V [email protected]

                                        So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

                                        I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

                                        What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

                                        G This user is from outside of this forum
                                        G This user is from outside of this forum
                                        [email protected]
                                        wrote on last edited by
                                        #30

                                        I'm not sure of the availability guarantees, but Oracle and other cloud services have free tiers for low CPU/RAM/storage needs. If the availability guarantees are there, this could be an option. It works fine for FoundryVTT and hasn't cost me anything for the last couple years, and I don't imagine your projected needs would outstrip Foundry's.

                                        1 Reply Last reply
                                        0
                                        • V [email protected]

                                          So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

                                          I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

                                          What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

                                          S This user is from outside of this forum
                                          S This user is from outside of this forum
                                          [email protected]
                                          wrote on last edited by
                                          #31

                                          You can drploy a Cloudflare worker that exposes an APi endpoint with an SQLite DB completely for free and without doing any maintenance. I don’t think the DB is encrypted , so it wouldn’t be my first choice if privacy is a concern. There’s a bit of a learning curve with all the UI bloat but once you figured it out it’s a very hassle free solution.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups