{"id":13637806,"url":"https://github.com/jamesward/hello-kotlin-ktor","last_synced_at":"2025-04-12T04:31:52.364Z","repository":{"id":137064634,"uuid":"178293493","full_name":"jamesward/hello-kotlin-ktor","owner":"jamesward","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-28T20:59:51.000Z","size":113,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T00:05:52.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamesward.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-03-28T22:45:55.000Z","updated_at":"2024-08-20T20:27:56.000Z","dependencies_parsed_at":"2023-03-21T11:03:23.719Z","dependency_job_id":null,"html_url":"https://github.com/jamesward/hello-kotlin-ktor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesward%2Fhello-kotlin-ktor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesward%2Fhello-kotlin-ktor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesward%2Fhello-kotlin-ktor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesward%2Fhello-kotlin-ktor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesward","download_url":"https://codeload.github.com/jamesward/hello-kotlin-ktor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248517221,"owners_count":21117418,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T01:00:34.097Z","updated_at":"2025-04-12T04:31:51.964Z","avatar_url":"https://github.com/jamesward.png","language":"Kotlin","funding_links":[],"categories":["Run popular languages and stacks"],"sub_categories":["Languages"],"readme":"Hello Kotlin Ktor\n-----------------\n\n## Run Locally:\n1. Start the local server:\n    ```\n    ./gradlew run\n    ```\n1. Open: [localhost:8080](http://localhost:8080)\n\n## Click-to-Deploy on Google Cloud Run\n[![Run on Google Cloud](https://deploy.cloud.run/button.svg)](https://deploy.cloud.run)\n\n## CLI Deploy on Google Cloud Run\n1. [Install \u0026 setup gcloud](https://cloud.google.com/sdk/install)\n\n1. Enable the Container, Container Registry, Cloud Build, and Cloud Run APIs:\n    ```\n    gcloud services enable container.googleapis.com containerregistry.googleapis.com cloudbuild.googleapis.com run.googleapis.com\n    ```\n\n1. Build the container image on Cloud Build using Buildpacks (currently an alpha feature), storing the image on Google Container Registry:\n    ```\n    export PROJECT_ID=YOUR_GCP_PROJECT\n    gcloud alpha builds submit --pack=image=gcr.io/$PROJECT_ID/hello-kotlin-ktor --project=$PROJECT_ID\n    ```\n\n1. Deploy the container on Cloud Run:\n    ```\n    gcloud run deploy \\\n      --project=$PROJECT_ID \\\n      --region=us-central1 \\\n      --platform=managed \\\n      --allow-unauthenticated \\\n      --image=gcr.io/$PROJECT_ID/hello-kotlin-ktor \\\n      ktor-hello-world\n    ```\n\n## Local Docker Build \u0026 Run\n\n1. [Install Docker](https://docs.docker.com/get-docker/)\n\n1. [Install pack](https://buildpacks.io/docs/install-pack/)\n\n1. Build the image using Buildpacks:\n    ```\n    pack build --builder=gcr.io/buildpacks/builder:v1 hello-kotlin-ktor\n    ```\n\n1. Run image:\n    ```\n    docker run -p8080:8080 hello-kotlin-ktor\n    ```\n\n1. Open: [localhost:8080](http://localhost:8080)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesward%2Fhello-kotlin-ktor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesward%2Fhello-kotlin-ktor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesward%2Fhello-kotlin-ktor/lists"}