Skip to content

A Go-based importer/seeder for an electronic version of the card game.

Notifications You must be signed in to change notification settings

devilslane-com/cards-against-humanity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cards Against Humanity

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.

Importer

THis will create the packs and cards collections.

Build the importer

go mod tidy
cd src/import
go build -o ../../../bin/import.exe .

Run the importer

cd bin/
import "../resources/data/cards.json" "mongodb://user:pass@localhost:27017/db_name" db_name

Seeder

This will create the games, players, rounds, and responses collections, and an example structure.

Build the seeder

go mod tidy
cd src/seed
go build -o ../../../bin/seed.exe .

Run the seeder

cd bin/
seed "../resources/data/cards.json" "mongodb://user:pass@localhost:27017/db_name" db_name

About

A Go-based importer/seeder for an electronic version of the card game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published