Black-ish is not based on a true story. It's a creation of the show's writers and producers, who came up with the concepts and characters for entertainment purposes.
Yes, it was. The show drew inspiration from real events and characters related to the Times Square adult entertainment industry in the 1970s and 1980s.