{"id":18399178,"url":"https://github.com/marky-mark/play-basic","last_synced_at":"2025-09-01T20:10:35.970Z","repository":{"id":142321324,"uuid":"92761807","full_name":"marky-mark/play-basic","owner":"marky-mark","description":null,"archived":false,"fork":false,"pushed_at":"2018-02-13T18:41:25.000Z","size":186,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-19T05:38:52.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/marky-mark.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-29T17:37:37.000Z","updated_at":"2017-05-29T17:37:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"246dbf67-f6cc-4947-9350-f66aa10105f2","html_url":"https://github.com/marky-mark/play-basic","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/marky-mark/play-basic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marky-mark%2Fplay-basic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marky-mark%2Fplay-basic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marky-mark%2Fplay-basic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marky-mark%2Fplay-basic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marky-mark","download_url":"https://codeload.github.com/marky-mark/play-basic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marky-mark%2Fplay-basic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273183228,"owners_count":25059812,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-06T02:26:01.615Z","updated_at":"2025-09-01T20:10:35.945Z","avatar_url":"https://github.com/marky-mark.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/marky-mark/play-basic.svg?branch=master)](https://travis-ci.org/marky-mark/play-basic)\n\nBasic Scala Api Application\n============================\n\n## Starting Locally\n\n### Docker Compose\n\n#### Prerequisites\n* Docker for Mac (`brew cask install docker`)\n* (Docker compose should be installed already)[https://docs.docker.com/compose/install/#prerequisites]\n\n#### Start\n\nCan start by using docker compose, but the issue here is that the schema might not be applied. This is due to the limitations of docker compose not waiting for the db to be up applying flyway.\n\n```bash\ndocker-compose up\n```\n\nAlternatively use (SBT Docker Compose Plugin)[https://github.com/Tapad/sbt-docker-compose]\n\n```bash\nsbt dockerComposeUp\n```\n\n#### Stop\n\n```bash\ndocker-compose down --volumes\n```\n\n```bash\nsbt dockerComposeStop\n```\n\n### Starting Manually\n\n#### Prerequisites\n\n* Postgres 9.4+\n* Follow [flyway instructions to install schema](https://github.com/marky-mark/play-basic/tree/master/flyway) \n\n```bash\nsbt run\n```\n\n### Tests\n\n```bash\nsbt test dockerComposeTest\n```\n\nIf the integration tests are broken and you want to debug [see here](https://github.com/Tapad/sbt-docker-compose)\n\n### Generate Swagger Json\n\n* TODO: Create SBT Plugin\n\n```bash\nbrew install swagger-codegen\nswagger-codegen generate -i swagger/api.yaml -l swagger -o public/\n```\n\n### Some Useful Docker Commands\n\n#### Clear out old docker images\n\n```bash\ndocker rmi $(docker images --filter \"dangling=true\" -q --no-trunc) \n```\n\n```\ndocker system prune\n```\n\n```\ndocker images prune\n```\n\n#### Clear out the exited containers\n\n```bash\ndocker rm -v $(docker ps -a -q -f status=exited)\n```\n\n#### List docker images\n\n```bash\ndocker images -a\n```\n\n#### List docker containers\n\n```bash\ndocker ps -a\n```\n\n#### Docker Volume\n\n```\ndocker volume ls\n```\n\n```\ndocker volume prune\n```\n\n#### Docker network\n\n```\ndocker network ls\n```\n\n```\ndocker inspect \u003cNETWORK_HASH\u003e\n```\n\n### Test Coverage\n\nInvestigate if IT tests are covered as part of it.\n\nhttps://github.com/scoverage/sbt-scoverage\n\n```sbt coverage test dockerComposeTest coverageReport```\n\n### TODO - Upgrades\n\n* Play 2.6\n* Akka 2.5\n* SBT 1.X\n* Scala 2.12\n* codahale 4.X","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarky-mark%2Fplay-basic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarky-mark%2Fplay-basic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarky-mark%2Fplay-basic/lists"}