{"id":16445879,"url":"https://github.com/mslinn/play28-template","last_synced_at":"2025-10-27T05:32:06.844Z","repository":{"id":36519773,"uuid":"227932938","full_name":"mslinn/play28-template","owner":"mslinn","description":"Template for Play2.8.x projects, including all official Play Framework dependencies, WebJars and JQuery","archived":true,"fork":false,"pushed_at":"2021-12-01T17:45:41.000Z","size":78,"stargazers_count":1,"open_issues_count":7,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T02:13:27.649Z","etag":null,"topics":["play-framework","playframework","scala"],"latest_commit_sha":null,"homepage":"https://www.scalacourses.com/showCourse/39","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mslinn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-13T22:33:45.000Z","updated_at":"2023-08-14T17:00:00.000Z","dependencies_parsed_at":"2022-09-05T08:10:40.477Z","dependency_job_id":null,"html_url":"https://github.com/mslinn/play28-template","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/mslinn%2Fplay28-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mslinn%2Fplay28-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mslinn%2Fplay28-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mslinn%2Fplay28-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mslinn","download_url":"https://codeload.github.com/mslinn/play28-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238445879,"owners_count":19473826,"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":["play-framework","playframework","scala"],"created_at":"2024-10-11T09:45:41.779Z","updated_at":"2025-10-27T05:32:01.540Z","avatar_url":"https://github.com/mslinn.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Play Framework 2.8 Template\n\n[![License](https://licensebuttons.net/p/zero/1.0/88x31.png)](https://creativecommons.org/share-your-work/public-domain/cc0/)\n[![GitHub version](https://badge.fury.io/gh/mslinn%2Fplay28-template.svg)](https://badge.fury.io/gh/mslinn%2Fplay28-template)\n\nTemplate for Play 2.8.x projects, using Scala 2.13, including all official Play Framework dependencies,\nJQuery and Bootstrap. Dependency injection is used throughout.\nA Bootstrap view template is provided, and a plain HTML view template is provided.\n\nLinks to the appropriate ScalaCourses.com lectures are provided in each file.\nThe [Standard Files and Directories and Improved Template](https://scalacourses.com/student/showLecture/169)\nlecture discusses this GitHub project in detail.\n\n## Bash Script\nThis template is best used in conjunction with a bash script that looks like this, which you might place in `/usr/local/bin/play28Template`:\n\n```bash\n#!/bin/bash\n\n# Clones play28-template and starts a new SBT project\n# Optional argument specifies name of directory to place the new project into\n\nDIR=sbtTemplate\nif [ \"$1\" ]; then DIR=\"$1\"; fi\ngit clone https://github.com/mslinn/play28-template.git \"$DIR\"\ncd \"$DIR\"\nrm -rf .git\ngit init\necho \"Remember to edit README.md and build.sbt ASAP\"\n```\n\nRemember to make the script executable!\n```bash\n$ chmod a+x /usr/local/bin/play28Template\n```\nNow you can use the `play28Template` script to make new Play Framework for Scala projects:\n\n```bash\n$ play28Template newProjectName\n```\n\nNow you can use `sbt` to run and test your project.\n\n```bash\n$ cd newProjectName\n$ sbt -jvm-debug 9999 run\n```\n\n## Using GitHub?\n\n### GitHub Pages\n`play28Template` sets up the GitHub pages branch for your new project.\nBefore you can use it, edit `build.sbt` and change this line so your GitHub user id and project name are substituted\nfor the placeholders `yourGithubId` and `my-new-project`:\n\n    git.remoteRepo := \"git@github.com:yourGithubId/my-new-project.git\"\n\nNow you can publish the Scaladoc for your project with this command:\n\n    sbt \";doc ;ghpagesPushSite\"\n\nThe Scaladoc will be available at a URL of the form:\n\n    http://yourGithubId.github.io/my-new-project/latest/api/index.html\n\nThe Scaladoc for this template project is [here](http://mslinn.github.io/play25-template/latest/api/index.html)\n\n### Try Hub!\nWith `hub` and `play28Template` you can create a new SBT project and a matching GitHub project with only two commands.\nThe setup documented below will supply your GitHub username and password,\nand will only prompt your for your 2-factor-authentication (2FA) token each time\nyou run it if you set up your GitHub account to use 2FA.\n\n#### Install Hub\nInstall Hub on Mac OS:\n\n    $ brew install hub\n\nInstall Hub on Linux:\n\n    $ sudo -H pip install hub\n\nPut your GitHub login credentials in `~/.bash_profile` or `~/.profile`.\nAlso alias `hub` as `git` (`hub` also executes `git` commands):\n\n    export GITHUB_USER=yourGithubUserName\n    export GITHUB_PASSWORD=yourPassword\n    alias git=hub\n\nReload `~/.bash_profile`\n\n    $ source `~/.bash_profile`\n\n... or reload `~/.profile`\n\n    $ source `~/.profile`\n\n#### Using play28Template with Hub\nCreate a new SBT project and create a new GitHub project, which `hub` automatically adds as a `git` `remote`:\n\n    $ play28Template bigBadProject\n    $ cd bigBadProject\n    $ git create -d \"Project description\"\n    two-factor authentication code: 881078\n    Updating origin\n    created repository: mslinn/bigBadProject\n\nNow check in the new project:\n\n    $ git add -A \u0026\u0026 git commit -m \"Initial checkin\" \u0026\u0026 git push -u origin master\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmslinn%2Fplay28-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmslinn%2Fplay28-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmslinn%2Fplay28-template/lists"}