{"id":19145644,"url":"https://github.com/amazingustav/ktorplate","last_synced_at":"2026-03-11T13:14:05.232Z","repository":{"id":124644727,"uuid":"274925483","full_name":"amazingustav/ktorplate","owner":"amazingustav","description":"A simple template for Ktor base project","archived":false,"fork":false,"pushed_at":"2023-09-25T15:51:26.000Z","size":106,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T01:51:05.002Z","etag":null,"topics":["exposed","flyway","koin","kotlin","ktor"],"latest_commit_sha":null,"homepage":"","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/amazingustav.png","metadata":{"files":{"readme":"README.en-US.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-25T13:38:10.000Z","updated_at":"2024-03-26T12:52:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed928170-c088-49af-b414-3230f5f90d76","html_url":"https://github.com/amazingustav/ktorplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/amazingustav/ktorplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingustav%2Fktorplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingustav%2Fktorplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingustav%2Fktorplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingustav%2Fktorplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amazingustav","download_url":"https://codeload.github.com/amazingustav/ktorplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingustav%2Fktorplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30382582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T12:49:11.341Z","status":"ssl_error","status_checked_at":"2026-03-11T12:46:41.342Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["exposed","flyway","koin","kotlin","ktor"],"created_at":"2024-11-09T07:41:35.306Z","updated_at":"2026-03-11T13:14:05.196Z","avatar_url":"https://github.com/amazingustav.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[Portuguese README](/README.md)\n# Ktorplate - Template Ktor project\n\n### Tech stack:\n* Kotlin (JDK 11)\n* [Koin](https://insert-koin.io/)\n* [Ktor](https://ktor.io)\n* [JetBrains Exposed](https://github.com/JetBrains/Exposed)\n* [Flyway](https://flywaydb.org/)\n* PostgreSQL\n\nThis project follows [Clean Architecture rules](https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html) and its structure is organized like:\n```bash\n|-- application -\u003e Principal module, responsable to dependency and context injections. It orchestrate all other modules.\n|-- persistence -\u003e Database (or any kind of data storage) interface and integration. It sees \"entity\" e \"usecase\" modules.\n|-- web         -\u003e Web Adapter, where the entry is exposed (e.g. API, events, sockets...). It sees \"entity\" e \"usecase\" modules.\n|-- usecase     -\u003e Application rules. It sees only \"entity\" module.\n|-- entity      -\u003e Entities and business rules. This is the core of application. It doesn't use any module, but anyone of them can use it.\n```\n\n### How to execute\n\n* To start application and databse, you just have to type this command:\n    * If you don't wanna see logs, remove `-d` argument.\n```$xslt\ndocker-compose up -d\n```\n\n* To quit both application and database services, just type:\n```$xslt\ndocker-compose stop\n```\n\n**PS**: You have to be in the same folder level as `docker-compose.yml` file to execute the commands above.\n\n\n### Database versioning\nEvery databse change is versioned with [flyway](https://flywaydb.org/), so when you change db structure (DDL/DML), you have to add a new file into `resources/db/migration` folder with your change content. Gradle build will make sure to apply all changes, using flyway-plugin.\n\n## ISSUES\n* There are no tests (eXtreme Go Horse, buddy)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famazingustav%2Fktorplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famazingustav%2Fktorplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famazingustav%2Fktorplate/lists"}