In-depth documentation on Uniswap V2 is available at uniswap.org.
The built contract artifacts can be browsed via unpkg.com.
The following assumes the use of node@>=10.
yarn
yarn compile
yarn test
forge script script/DeployRouter.s.sol:DeployRouter --sig 'run()' \
--chain-id $CHAIN_ID \
--rpc-url $ETH_RPC_URL \
--private-key $PRIVATE_KEY \
--verifier-url $VERIFIER_URL \
--verifier $VERIFIER \
--verify \
--broadcast --ffi --legacy -vvvv