Is there an app available to run a discourse website in? Something that can be branded up as your own site?
Do you mean a mobile app? There are iOS and Android Discourse apps available as open source that you can modify and whitelabel to suit your needs.
where can I get the code for those apps
Did you try searching?