How to Set Up a Local Unsecured Postgres Virtual Machine (for testing)
The sample code for this post can be found on GitHub.
While we can always install PostgreSQL on our host machine, it’s a much cleaner solution to create something like a local virtual machine with Vagrant or a container using Docker. That way, any changes we make to the database and then forget about are not around as soon as we destroy either the container or the virtual machine. It is one more way to tighten that feedback loop we need as developers.