{"id":18634924,"url":"https://github.com/invadergir/akka-http-template","last_synced_at":"2025-11-04T11:30:40.654Z","repository":{"id":245468691,"uuid":"136225473","full_name":"invadergir/akka-http-template","owner":"invadergir","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-04T18:13:47.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T08:28:58.987Z","etag":null,"topics":["akka-http","scala","template"],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/invadergir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-05T19:32:45.000Z","updated_at":"2022-09-03T19:12:34.000Z","dependencies_parsed_at":"2024-06-22T09:10:12.197Z","dependency_job_id":null,"html_url":"https://github.com/invadergir/akka-http-template","commit_stats":null,"previous_names":["invadergir/akka-http-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invadergir%2Fakka-http-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invadergir%2Fakka-http-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invadergir%2Fakka-http-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invadergir%2Fakka-http-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/invadergir","download_url":"https://codeload.github.com/invadergir/akka-http-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239433910,"owners_count":19637806,"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-http","scala","template"],"created_at":"2024-11-07T05:22:30.993Z","updated_at":"2025-11-04T11:30:40.597Z","avatar_url":"https://github.com/invadergir.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Template / Starter CRUD Service for Akka-HTTP\n\n## Goals of this project\n\n1. To be a starter project for a basic RESTful CRUD service with get, post, put, and delete endpoints.  Includes configuration (pureconfig) and logging (scala-logging) plumbing already set up.\n1. To show how to properly do asynchronous endpoints in akka-http \n1. To show how to properly handle exceptions in the service code.\n1. To be a demonstration of how to organize the files (notice that ThingService and ThingRoutes are separate).\n1. To show how to do unit tests using akka-http-testkit.\n\n## To Use\n\n### Run\n\n```\nsbt test run\n```\n\nThe server runs on localhost:8080.\n\nTo test it, you can query for the default Thing which is available at startup:\n\n```\ncurl -vX GET http://localhost:8080/things/hello\n```\n\nWhich gives:\n```\n{\"id\":\"hello\",\"description\":\"world!\"}\n```\n\nOther example usages:\n\n```\n# Create 'a' thing.\ncurl -vX POST -H \"Content-Type: application/json\" -d '{\"id\": \"a\", \"description\":\"aaa\"}' http://localhost:8080/things\n\n# Update 'a' thing:\ncurl -vX PUT -H \"Content-Type: application/json\" -d '{\"id\": \"a\", \"description\":\"AAAAA\"}' http://localhost:8080/things/a\n\n# Get that thing:\ncurl -vX GET http://localhost:8080/things/a\n\n# Get all the things:\ncurl -vX GET http://localhost:8080/things\n\n# Delete 'a' thing:\ncurl -vX DELETE http://localhost:8080/things/a\n```\n\n### Build Jar\n\n```\nsbt assembly\n```\n\n### To Rename Project \n\nTo use this as a starter project, you can run the 'renameproject.sh' script as follows:\n\n```\n./renameproject.sh new-project-name -p $NEW_PACKAGE_PREFIX\n```\n...where NEW_PACKAGE_PREFIX is \"com.mycompany\" or something like that.\n\nFor help running the script, please type: \n\n```\n./renameproject.sh -h\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvadergir%2Fakka-http-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvadergir%2Fakka-http-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvadergir%2Fakka-http-template/lists"}