If you haven't already, go ahead and download and install Nanobox.
# Create a new directory for your project and cd in
mkdir hugo-proj && cd hugo-proj
# Create a `boxfile.yml` using the content from this gist
curl -sL http://tinyurl.com/ya23f5ry > boxfile.yml
# Start the local environment
nanobox run
### Create a new hugo site
cd /tmp
hugo new site NAME
shopt -s dotglob
cp -a NAME/* /app/
cd -
# Start hugo
hugo server --bind "0.0.0.0"
In your browser, visit the IP provided at the begginging of the nanobox run
output at port 1313. You can also add a dns alias for your locally running app if you don't want to use the raw IP.
nanobox dns add local hugo.dev
Write the app!