Help me out lads. I don't know much about this stuff.

How do I go about building an offline media server? I'm not interesting in online streaming to all my different devices. I just want something I can keep at home, that can hold terabytes of movies/shows, and can connect to my TV via hdmi.