How much would you like to spend? realize that this would need to cover the cost of a grinder and an espresso machine
~$500, intro-level Saeco/ de Longhi/ Gaggia with an entry-level Baratza grinder. Make sure to get the unpressurized portafilter. That with freshly-ground beans will get you something better than what Starbucks can make. Also, some Baratza grinders cannot grind fine enough. I had to return mine twice before they shipped me something that could do fine enough a grind. I had my first machine for 7 years; 4 years for the grinder. Could have had the espresso machine for longer, but basically ruined it by not descaling often enough. Make sure you descale.
~$750same espresso machine, but with Rancilio Rocky grinder. Personally, I think it’s not worth it at this price point. Either spend $750 more and get the temperature stability of the PID or spend $250 less (and use it for good beans)
~$1500, Rancilio Silvia PID with an entry-level Eureka/ Ceado. The Silvia will allow you to pour latté art (see below, I’m still learning and practicing). I’m “slumming it” with a mid-tier Baratza grinder, which is not the best-designed equipment, as the vibration from grinding actually changes the grind setting.
~$2250, you get into some nice heat-exchange machines (essentially can brew and steam at the same time) and a Mazzer Super Jolly or Type A. You are buying a lot of brand cachet when buying a Rocket, but Profitec, Quickmill, ECM, etc. all make very good machines.
~$3000, dual boiler with a Mazzer. When you have limited amount of $$$ to spend, spend more on the grinder. However, the best grinders can be found for $750-1000, whereas the espresso machines will go quite a bit above.
Anything more, you have your La Marzocco single group, Slayer, or if you want to be fancy enough, Arduino Black Eagle (cost more than a family sedan).
Also, realize that you’ll likely need to spend $50 on a portafilter (unpressurized for the intro-level; bottomless for anything else), ~$30 for a tamper, $30 for cups, and probably $30-50 for water softeners/filters. Finaly, feel free to read this overview of espresso machines, many models worth your attention.