codenamesgreen icon indicating copy to clipboard operation
codenamesgreen copied to clipboard

Add build instructions

Open simonste opened this issue 5 years ago • 4 comments

Add build instructions to readme

simonste avatar Apr 07 '20 16:04 simonste

@tremby @jbowens how do you get this up and running? can't figure out how to get Elm to talk to the go server. never used go before, but here's what i've done:

elm-live src/Main.elm
go run cmd/greenapid/main.go

also, i've changed hardcoded Url's to github (dictionary, gameapi) to local relative routes

rayzeller avatar Apr 17 '20 02:04 rayzeller

No idea, I didn't! All I did is edit a CSS file!

tremby avatar Apr 17 '20 03:04 tremby

Well once I get it up and running, I was planning on tinkering with the Decks. Adding a shuffle option so it's not randomized each game; you play with one deck until you run out or decide to shuffle, like the real thing.

rayzeller avatar Apr 17 '20 03:04 rayzeller

I’m sharing here a joint work with @he-rvb in case it would help.

This Dockerfile together with this nginx configuration is sufficient to successfully run a full server locally. It comes with a small patch to make it work smoothly, since the original code does not normally support running both the api and serving local files on the same "domain".

I may provide a PR if you’re interested.

docker.zip

immae avatar Apr 27 '20 17:04 immae