Well, you got several options:
Buy at the Bazaar's NPCs.(But let's be honest, a lot of those weapons are way overpriced.)
Buy at the Auction House. You can usually find some nice 2* guns for around 1500 crowns.
Buy from other players.(But I would really only recommend this if you're familiar with trading and the average price you're buying. So you don't get scammed.)
Craft. You need to first learn a recipe. You can find recipes from Basil(The guy in the clockworks terminal.) or from Vatel(Bazaar guy, he's near the arcade entrance.). Vatel usually holds only 2* recipes, while Basil has higher leveled recipes in deeper depths. Once you learn the recipe and have all the materials for it(The recipe should tell you what you need.) you would need to go to an alchemy machine(They're the blue vending machine-like things.)
EDIT: Here's a more in-depth explanation on crafting. :) http://wiki.spiralknights.com/Crafting
I would recommend looking through the forums in knowing what kind of gun you should get/craft. I like crafting the best, but most(from what I noticed at least.) people prefer just buying the 2*-3* gear they need, and then start crafting from there.