I've been working for two years old on and off on a self hosted streaming service
TLDR: Miauflix supports TV shows, Movies and Anime. It has a configuration UI to personalize it, all you need to is a TMDB Key and an optional Trakt keys. You can install it in a VPS or in a home server.