This is how to easily setup an Oracle XE DB in a Virtual Machine that is accessible via localhost:1521.
So you don't have to install Oracle XE locally, but inside a VM.
We use VirtualBox, Vagrant and Docker for that.
vagrant version to check that vagrant is correctly installed.
Vagrantfile from this gist to a local directory.