Setting up a sidechain similiar to XDAI

Hi, so one of the projects I am working on has a requirement of a side chain where we can setup our own validators and stake custom ERC20 tokens just like XDai is doing. So are there any resources on how can I fork the network and setup a custom sidechain with POS Token Staking?