An implementation of Chinchon Game in Akka, Akka Http, Vanilla JavaScript and Bootstrap 4.
https://www.youtube.com/watch?v=SIM6cu9_dtw
sbt run
Browse http://localhost:8080/
curl -XPOST 'localhost:8080/users' -d '{"name": "John Doe", "age": 110, "countryOfResidence": "Arisa" }' --header 'Content-Type:application/json'
curl -XPOST 'localhost:8080/users' -d '{"name": "Jean Foe", "age": 220, "countryOfResidence": "Ursiku" }' --header 'Content-Type:application/json'
curl 'localhost:8080/users' | json_pp
curl 'localhost:8080/users/Jean%20Foe' | json_pp
curl -XDELETE 'localhost:8080/users/john%20doe'
curl -XPOST 'localhost:8080/games' -d '{"userName":"John Doe"}' --header 'Content-Type:application/json'
curl -XPOST 'localhost:8080/games/:game_name/players' -d '{"userName":"Jean Foe", "gameName": ":game_name"}' --header 'Content-Type:application/json'
curl -XPOST 'localhost:8080/games/dFfyId/players' -d '{"userName":"Jean Foe", "gameName": "dFfyId"}' --header 'Content-Type:application/json'
curl 'localhost:8080/games' | json_pp
curl 'localhost:8080/games/:game_name' | json_pp
curl 'localhost:8080/games/dFfyId' | json_pp
curl -XDELETE 'localhost:8080/games/:game_name'
curl -XPOST 'localhost:8080/users' -d '{"name": "John Doe", "age": 110, "countryOfResidence": "Arisa" }' --header 'Content-Type:application/json'
curl -XPOST 'localhost:8080/games' -d '{"userName":"John Doe"}' --header 'Content-Type:application/json'
curl -XPOST 'localhost:8080/users' -d '{"name": "Jean Foe", "age": 87, "countryOfResidence": "Kuratia" }' --header 'Content-Type:application/json'
curl 'localhost:8080/games' | json_pp
curl -XPOST 'localhost:8080/games//players' -d '{"userName":"Jean Foe", "gameName": ""}' --header 'Content-Type:application/json'
ssh -R 80:localhost:8080 ssh.localhost.run
sbt assembly
scala target/scala-2.13/akka-chinchon-assembly-0.1.0-SNAPSHOT.jar
sbt docker:publishLocal
docker run --publish 8080:8080 --detach --name chinchon akka-chinchon:0.1.0-SNAPSHOT
docker rm --force chinchon
docker login --username=javier2018
docker tag {{IMAGE_ID}} javier2018/akkachinchon:{{semantic version}}
docker push {{tag you just created}}
ssh_cairo_amazon
docker run --publish 8080:8080 --detach --name chinchon javier2018/akkachinchon:0.1.0
cat `find . \( -name '*.scala' -o -name '*.js' -o -name '*.java' \) -print` | perl -pe "system 'sleep .003'"
(*) este readme parece escrito por el profesor Jirafales pero en TO TO TO TO !!!