| I've been a dev for a while, mostly working in already setup companies where my merge trigger something that deploys the code on AWS and end of story. But I'm highly interest now in building my own stuff, maybe a simple web app with nest + next + postgress or whatever that I can capitalize (a Saas??), maybe a game for icebreakers (like wikitrivia, wordle, etc) just for fun. How do people host this things? How do I even start learning this? Should I really try my lucky on AWS stuff and pray to not wake up with a bill in my credit card? Sounds so easy to deploy a static thing in GitHub pages but so scary to deploy any API on AWS. |
Get a cheap second hand machine to use as a server - 2 cpu cores and 2gb ram should suffice. Install debian onto it. Set it up so you can administer it remotely over ssh. Learn how to install and start your app as a service using systemd - get that working manually. Write yourself a list of all the steps you took to install your app. Format the disk, reinstall debian, see if you can follow your steps to get your app working again. Learn ansible, rewrite your manual install and deploy steps as an ansible playbook that can be executed over ssh. Format the disk, reinstall Debian, see if you can execute your ansible playbook to install your app without any manual steps. Get another second hand machine, install debian on it as well, set it up so it can also be administered by ansible. Now see if you can deploy your app to both machines at the same time, with your one playbook.
Congratulations, now you're deploying like it's 2012!