{"id":17945217,"url":"https://github.com/asgeir-s/microservice","last_synced_at":"2025-04-03T14:28:57.414Z","repository":{"id":32643110,"uuid":"36229510","full_name":"asgeir-s/microservice","owner":"asgeir-s","description":"microservice-seed with Akka, Akka HTTP, Akka HTTP Testkit, Docker, CircleCI, continuous integration/deployment, Elastic Beanstalk (AWS) and Scala Test (service- and unit tests)","archived":false,"fork":false,"pushed_at":"2016-03-08T15:17:25.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T03:26:02.061Z","etag":null,"topics":["akka","akka-http","boilerplate"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/asgeir-s.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}},"created_at":"2015-05-25T12:15:41.000Z","updated_at":"2021-01-22T13:04:50.000Z","dependencies_parsed_at":"2022-07-12T15:40:33.584Z","dependency_job_id":null,"html_url":"https://github.com/asgeir-s/microservice","commit_stats":null,"previous_names":["asgeir-s/microservice"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asgeir-s%2Fmicroservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asgeir-s%2Fmicroservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asgeir-s%2Fmicroservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asgeir-s%2Fmicroservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asgeir-s","download_url":"https://codeload.github.com/asgeir-s/microservice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247017879,"owners_count":20869905,"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":["akka","akka-http","boilerplate"],"created_at":"2024-10-29T06:24:37.861Z","updated_at":"2025-04-03T14:28:57.390Z","avatar_url":"https://github.com/asgeir-s.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microservice Seed for Akka HTTP\nDeveloper seed, making it easy to get started developing with:\n- Akka\n- Akka HTTP\n- Akka HTTP Testkit\n- Service test\n- Unit test\n- Docker\n- CircleCI (with continuous integration/deployment)\n- Elastic Beanstalk (AWS)\n- Scala Test\n\n## OSX Docker Set Up\n\nOne time setup:\ninstall boot2docker then:\n\n\tboot2docker init\n\tVBoxManage modifyvm \"boot2docker-vm\" --natpf1 \"postgres-port,tcp,127.0.0.1,5432,,5432\" #osx specific bind (local) # set postgres to \"listen on *\" and \"host all all 0.0.0.0/0 trust\"\n\nSetup on each shell:\n\n\tboot2docker start\n\teval \"$(boot2docker shellinit)\"\n\t\n## Run\n\n\tmake test   =\u003e for running all tests\n\tmake build  =\u003e for building jar and Docker image\n\tmake run-l  =\u003e for running docker-image locally\n\t\n\tsbt run \t=\u003e running application locally without Docker\n\t\navailable addresses:\n\n\thttp://localhost:8888/ping\n\thttp://localhost:8888/route/watever/deep\n\n## Deployment\nThe circle file is setup to deploy automatically to staging area. But for this to work you have to setup the application and environment on AWS Elastic Beanstalk (you can use the AWS console). Then configure EB_BUCKET, EB_APPLICATION_NAME and EB_ENVIRONMENT_NAME in sh/deploy.sh script.\n \n#### To deploy from local\nOne time setup:\n\t\n\tcd docker\n\teb init (then select environment etc...)\n\t\nThen\n\n\tmake deploy-s\n\tor\n\tmake deploy-p\n\n\n## Makefile\n\t-test \n\t-test-u (unit)\n\t-test-s (service)\n\t-run-l (run local)\n\t-build (builds a artifect and place it in the docker folder and after that build the docker container)\n\t-deploy-s (deploy on staging)\n\t-test-s-s (service tests ageins staging)\n\t-deploy-p (deploy in production)\n\n\n## Troubleshooting\nThis version of akka is logging a error when dropping a TLS connection:\n\n    [ERROR] [03/08/2016 16:10:27.036] [default-akka.actor.default-dispatcher-2] [akka://default/user/StreamSupervisor-0/flow-1-0-unknown-operation] Error in stage [recover]: No elements passed in the last 1 minute. (akka.http.impl.engine.HttpConnectionTimeoutException)\n    [DEBUG] [03/08/2016 16:10:27.037] [default-akka.actor.default-dispatcher-2] [akka://default/user/StreamSupervisor-0/flow-1-0-unknown-operation] Aborting tcp connection because of upstream failure: No elements passed in the last 1 minute.\n\nDon't worry about this. Should only be a DEBUG entry on next version\n\n## Resources\nSome good resources:\n- [Iterators: akka-http-microservice](https://github.com/theiterators/akka-http-microservice \"akka-http-microservice\")\n- [Iterators: reactive-microservices](https://github.com/theiterators/reactive-microservices \"reactive-microservices\")\n- [Akka Docs](http://akka.io/docs/ \"akka docs\")","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasgeir-s%2Fmicroservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasgeir-s%2Fmicroservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasgeir-s%2Fmicroservice/lists"}