ColinFay / hexmake

A Shiny App for Making Hex Stickers.
https://connect.thinkr.fr/hexmake
Other
110 stars 24 forks source link

hexmake

Golem app available at https://connect.thinkr.fr/hexmake/

Use it with a mongo db

If you want to use a mongo db as a backend to store hexes, you can plug it with a docker image.

docker run -v /mongo/data/db:/data/db -v /mongo/data/dump:/dump -p 12334:27017 -d --name mongohexmake -e MONGO_INITDB_ROOT_USERNAME=myuser -e MONGO_INITDB_ROOT_PASSWORD=mypassword mongo:3.4 

Then set a series of env variables with the infos (or use the one from your prod env).

Sys.setenv("MONGOPORT" = 12334)
Sys.setenv("MONGOURL" = "127.0.0.1")
Sys.setenv("MONGODB" = "hex")
Sys.setenv("MONGOCOLLECTION" = "make")
Sys.setenv("MONGOUSER" = "myuser")
Sys.setenv("MONGOPASS" = "mypassword")

And run

hexmake::run_app(with_mongo = TRUE)

Please note that the ‘hexmake’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.