But if its Android, I recommend Termux which gives a Linux based terminal emulator and you can install Ubuntu in it for further support.
You will also be needing a reverse tunnel to make it connect to your remote frontend application.
i recommend to only learn only as running heavy resources already heats up phone, and yours old too.
and for your existing projects, try FlashBB, its python based.
good luck.
I recently learned about onion services and for my use case it seems perfect. My use case would be setting it up for a few friends so I don't see a reason to not use it as speed isn't really that important and ideally I can still keep it somewhat private. Also, I just don't really know of a way to setup clearnet access very easily im still new to all this and don't have a great grasp of all the ins and outs of networking.