Get a chest and a sign.
Place the sign on the chest. (Use “Shift” to place signs on chests)
Type “[Shop]” on the first line (default)
Either by Anvil or by Chat, name your shop.
Right Click the sign to open the shop.
Open the shop
Click an item in YOUR inventory to add it.
Open the Shop
Change to Selling part of shop