I've been trying to understand how to setup systems from
the ground up on Ubuntu. I just installed redis
onto
the box and here's how I did it and some things to look
out for.
To install:
<?php | |
/* | |
* Chunk through result set and output as CSV file in browser. | |
*/ | |
function outputCSV($columns, $query, $chunkSize = 200) { | |
header("Content-type: text/csv"); | |
header("Content-Disposition: attachment; filename='export-" . date("YmdHis") . ".csv"); | |
header("Pragma: no-cache"); | |
header("Expires: 0"); | |
/** | |
* src/api/http.js | |
*/ | |
import axios from 'axios' | |
import qs from 'qs' | |
/** | |
* | |
* parse error response | |
*/ |