Many books that teach coding have several projects that build upon each other. One of my very favourites is Effortless E-Commerce by Larry Ullman. Find a book or online tutorial that shows you how to build a project that interests you and add the completed projects to your portfolio.
Once you’ve done enough projects to feel confident in your abilities, ask friends if you can build something for them. That’ll teach you how to deal with clients and their demands and the completed project can be added to your portfolio. Don’t have any friends or family who need a website? Take a website you really like and try to replicate it (design, features, functionality) without looking at the code. You won’t be able to add those to your portfolio since you’re essentially copying, but you’ll build mad programming and troubleshooting skills while doing it and this process loosely mimics having a client, since the specifications are exact and not of your own choosing.
Once you’ve run out of Free Code Camp projects, try volunteering your services to other nonprofits. Maybe try Volunteer Match.
With all this experience and a great portfolio, you can start hunting for a paying programmer job.