What sort of precautions would one need to take before just firing this up on their toy project running on localhost...
You would take the same precautions as putting any other web server on the web - you might want to use a password or a hard to guess subdomain if you do not want others to access it. But I would assume you would be using test data in your dev environment.
The Cloudflare WAF (Web Application Firewall) also blocks requests to your web server. I think that is just DDOS protection.