Thanks to Celsius at https://www.restagainsthumanity.com (see also https://github.com/celsiusnarhwal/rest-against-humanity)!
This sets up a database for an electronic version of the game. You should set up a MongoDB instance with a database, username, and password.
THis will create the packs and cards collections.
go mod tidy
cd src/import
go build -o ../../../bin/import.exe .cd bin/
import "../resources/data/cards.json" "mongodb://user:pass@localhost:27017/db_name" db_nameThis will create the games, players, rounds, and responses collections, and an example structure.
go mod tidy
cd src/seed
go build -o ../../../bin/seed.exe .cd bin/
seed "../resources/data/cards.json" "mongodb://user:pass@localhost:27017/db_name" db_name