TobiasRoland / zio-lang-survey

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZIO Language Survey

Run Console App:

./sbt ~run

Run Telnet App:

./sbt "~reStart -telnet"
telnet localhost 8022

Run Web App:

./sbt "~reStart -web"
curl -H "Content-Type: application/json" -X POST -d @example-start.json localhost:8080
curl -H "Content-Type: application/json" -X POST -d @example-wrong.json localhost:8080
curl -H "Content-Type: application/json" -X POST -d @example-scala.json localhost:8080

Local Docker:

docker build .

GCloud Docker & Cloud Run:

export PROJECT_ID=$(gcloud config get-value project)
gcloud builds submit -t gcr.io/$PROJECT_ID/zio-lang-survey
gcloud beta run deploy --image gcr.io/$PROJECT_ID/zio-lang-survey --region us-central1 --allow-unauthenticated zio-lang-survey

TODO:

  • Stackdriver

LATER:

  • Use Ref
  • Use ZIO Console
  • Replace RawHttp with httpcomponents

About

License:Apache License 2.0


Languages

Language:Scala 98.7%Language:Dockerfile 0.8%Language:Shell 0.5%