There is this video here which I think covers what you are asking for. It’s from a couple versions back so you may need to translate it to the latest version of Substrate.