This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function convertToJson(data) { | |
const headers = data[0] | |
const raw_data = data.slice(1,) | |
let json = [] | |
raw_data.forEach(d => { | |
let object = {} | |
for (let i = 0; i < headers.length; i++) { | |
object[headers[i]] = d[i] | |
} | |
json.push(object) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create a local .env file with the following 4 properties: | |
# | |
# MYSQL_DATABASE=<something> | |
# MYSQL_USER=<something> | |
# MYSQL_PASSWORD=<something> | |
# MYSQL_ROOT_PASSWORD=<something> | |
# | |
version: "3.8" | |
services: |