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.
First install VirtualBox https://www.virtualbox.org/wiki/Downloads
and Vagrant https://www.vagrantup.com/downloads.html
Run vagrant version
to check that vagrant is correctly installed.
Save the Vagrantfile
from this gist to a local directory.