Closed joshzcold closed 1 year ago
It's probably going to be easier to re-create the csv parser in nodejs so I can just call the functions on the backend when we load the content of a CSV file
I'm thinking of the passing the resulting json object into the /new
page components so the admin could modify the end result before it gets loaded into the game.
My end goal would be to have the admin not need to save a .json file to play a game.
Since heroku is now serving the Docker file I can execute the ruby script to parse the csv text into json
after creating
script/parse_csv
this project now has the ability to load up csv data into the cold_family_feud format.The operation would go as follow:
question,answer,points
or
question,answer,answer
(points get generated)after the file picker we send it to the server (assuming its not too large)
run the csv through
script/parse_csv
and JSON.parse() the output from server.For certain types of people this would be 1 step easier than using the game creator. I'm thinking school teachers who are familiar with google docs more so than a website's custom form.