I have 1 self-sustaining patio pond (42g) and 1 self-sustains patio tank (55g). I have kept rosy barbs, Mosquitofish, flagfish, platys, and many species of snail. These tanks must have access to the sun, as algae is the main filter. You must have a forest of plants (I use anacharis and coontail, though I have 5 other species in each tank). The sun keeps it so that hair algae can grow. I do trimonthly water changes.
If you want to keep it indoors, which I assume you do, you simply have anacharis, hornwort, or a different free-floating plant (I recommend washing it in part hydrogen peroxide part water mix before adding). This will act as the main filter. If you add American Flagfish, they will keep the hair algae down. Flagfish are arguably the hardiest fish species out there, and they are not hard to please. I recommend an unheated tank, assuming weather permits.
If you want something super simple, a little 2.5g tank can hold a couple Neocardinia shrimp. I am raising a couple dragonfly nymphs as well. Super easy and hardy.
Here is a 4ft long tank from the side. This isn’t after a water change. The water tends to have a greenish tinge, as it is in part sun. The anacharis seasonally dies down. The fish in this tank slow their metabolism in the wild down as it gets cold, so it works out perfectly.
Let me know if you have any questions. I have kept these tanks for around 2 years, and they are not only succeeding, but thriving. My Gymnogeophagus Terrapurpurra have bred, as well as the flagfish, rosy barbs, Xiphophorus, and Mosquitofish.