I want to know the whole life of Imam Ali AS from birth to martyrdom so that I can follow him. Is there any full course or book that covers it?
You can find an ample selection of texts about Imam 'Ali ('a) here:
https://www.al-islam.org/person/imam-ali
In particular, I recommend the following texts:
https://www.al-islam.org/life-ali-ibn-abi-talib-baqir-sharif-al-qurashi
https://www.al-islam.org/voice-human-justice-saut-ul-adalat-al-insaniyah...
InshaAllah this helps.
Fi aman Allah