Designing dapp using metamask

Is it possible to sign a transaction using metamask account on client side UI and rest of implementation on server side (ex. Nodejs) ? Also is there a example on github ?