Here are a few things that I learned throughout the years and that I think can help you:
Learn the basics.
Learn in public.
Build different projects.
Contribute to projects that you like.
Open source is the most powerful thing for a developer. You will work with people from across the globe, create a network, solve people’s problems, help developers who want to start contributing to that project, etc. Contribute to different projects that you like or that you use daily. You don’t need to create the most complex thing for that project; you can quickly start with a simple documentation suggestion. Try to mess a little bit with the code; read how the code works and how the project works under the hood. Open source contribution brings value not only for you contributing to the project but for people and companies who will use your code in the future to scale applications for millions of users.