type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
axios({ | |
url: 'http://localhost:5000/static/example.pdf', | |
method: 'GET', | |
responseType: 'blob', // important | |
}).then((response) => { | |
const url = window.URL.createObjectURL(new Blob([response.data])); | |
const link = document.createElement('a'); | |
link.href = url; | |
link.setAttribute('download', 'file.pdf'); | |
document.body.appendChild(link); |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis