How exactly can you run GitHub or Slack locally? Their entire purpose is being a place where people can communicate, they need to be centrally available on a network to have any function at all.
Developers used to share code through version control before there were websites to serve the "upstream", and they used to communicate without bespoke messenger apps.
Their former ways of doing so still work just fine.
I meant locally as a company.