How can I include discourse in my local dev stack?

Actually it’s pretty critical because I want to use discourse as the sign on system for my applications. Without it, that will mean users can’t login locally.