Editing the spree gem

i want know where is the coding of spree to edit and how to use deface gem from ubuntu terminal.please guide me to create a e-commerce website with spree gem.i want guidance to work with spree.please sent the link of any best spree tutorial or book about it.