Sounds like you are not sure of what you actually want to do on this learning journey.
I would recommend doing both since it is a home lab.
Your first step would be to learn the actual languages Python, SQL, JavaScript, HTML5, CSS. Knowing those you can build a backend for whatever your frontend might be (web service, API, website, etc.) You need to come up with an end goal here though or you will just be playing around and never accomplish anything. Are you trying to build a website, API, Web Service, Tools, etc?
After you know what you want to build you can work backwards from there, many start with just the initial design or goal and move on to creating a lite demonstration of it or MVP to see if it is worth investing more time into.