jkomoros / boardgame

An in-progress framework in golang to easily build boardgame Progressive Web Apps
Apache License 2.0
31 stars 4 forks source link

Allow baking of config.json directly into generated server binary #660

Open jkomoros opened 6 years ago

jkomoros commented 6 years ago

Originally captured in #655. That would make it so the only thing that has to be deployed to the server is the binary (and making sure that the right ENV is set).

jkomoros commented 6 years ago

With boardgame-util build api this isn't even hard--we're generating code anyway, might as well just ouput the json value of the config into the head. The harder part is allowing a config to be reinfated by its serialization, and then also getting server to not look for a config itself but use one that's been passed in already. (For that one can probably have a pattern similar to what we use for server.AddOverrides())