If a virus is not defined as living, what is it. How does it reproduce

If a virus is not defined as living, what is it? How does it reproduce? How have viruses evolved through time?