I’ll just leave this link here. All the code and tools you need to make your own course are open-source. All the infrastructure you need is mybinder.org and netlify.com. But of course you can swap either of them out for your favourite alternative of a similar service hosted somewhere else.
bump for visibility because this is amazing, saw it on twitter yesterday.