What book or website should i refer for stm32f0 development from scratch (Ihave worked on AVR microcontrollers )
I suggest the manufacturer website: ST.com

You should find Application Notes about the STM32F0 that contain sample code and sample schematics as well.

Then of course you have the Family Reference Manual, also available from the ST website that explains all the functionality of the F0.

Then you have the part datasheet, that goes more into details on specific things of the particular device of the F0 family that you have chosen.