{"id":19622230,"url":"https://github.com/commercetools/commercetools-sunrise-java-starter","last_synced_at":"2025-06-22T17:35:08.874Z","repository":{"id":145047397,"uuid":"64837658","full_name":"commercetools/commercetools-sunrise-java-starter","owner":"commercetools","description":"Bootstrap project using commercetools Sunrise Framework \u0026 Theme","archived":false,"fork":false,"pushed_at":"2019-09-04T12:19:23.000Z","size":2462,"stargazers_count":9,"open_issues_count":7,"forks_count":16,"subscribers_count":84,"default_branch":"master","last_synced_at":"2025-06-18T04:53:33.668Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://demo.commercetools.com/","language":"Java","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/commercetools.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":"2016-08-03T10:35:34.000Z","updated_at":"2025-03-11T19:58:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"760b1744-b540-4eeb-8cd2-fb34b06690f3","html_url":"https://github.com/commercetools/commercetools-sunrise-java-starter","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/commercetools/commercetools-sunrise-java-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fcommercetools-sunrise-java-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fcommercetools-sunrise-java-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fcommercetools-sunrise-java-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fcommercetools-sunrise-java-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/commercetools","download_url":"https://codeload.github.com/commercetools/commercetools-sunrise-java-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fcommercetools-sunrise-java-starter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261335043,"owners_count":23143459,"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":[],"created_at":"2024-11-11T11:26:43.629Z","updated_at":"2025-06-22T17:35:03.842Z","avatar_url":"https://github.com/commercetools.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sunrise Java Starter Project\n[![Build Status](https://travis-ci.org/commercetools/commercetools-sunrise-java-starter.svg?branch=master)](https://travis-ci.org/commercetools/commercetools-sunrise-java-starter)\n[![Heroku](http://heroku-badge.herokuapp.com/?app=ct-sunrise-starter-prod\u0026style=flat\u0026svg=1)](http://ct-sunrise-starter-prod.herokuapp.com/)\n\n\u003e :warning: **The [Sunrise Java Shop Framework](https://github.com/commercetools/commercetools-sunrise-java) is no longer maintained.**\nIf you would nevertheless like to use it for your own developments you should fork the [framework's repository](https://github.com/commercetools/commercetools-sunrise-java) under the given license and continue developing your version, but please be aware that there will be no more updates and no support provided to this framework.\n\nSunrise-based project using:\n- [Sunrise Shop Framework](https://github.com/commercetools/commercetools-sunrise-java)\n- [Sunrise Theme](https://github.com/commercetools/commercetools-sunrise-theme)\n- [Play Web Framework 2.5.x](https://www.playframework.com/documentation/2.5.x/Home)\n\nUse it as a starting point to develop your own online shop project.\n\n## Preconditions\n\n* Install [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) (version \u003e= 1.8.0_92)\n* Create a [commercetools platform project](https://mc.commercetools.com/) with some data\n* Unless you modify the project to behave differently:\n  * Product variants must contain a SKU without dashes `-`\n  * Project must have at least a currency, country and language defined (unless you specify them via Sunrise configuration)\n\n## Deployment\n\nFor an easy and fast deployment of your application, we recommend [Heroku](https://www.heroku.com):\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\nThis will take you to the configuration page to create a Sunrise application in Heroku. Once you have created it, you can access and modify the source code of your application via Git, as explained in [Git Cloning Existing Heroku Applications](https://devcenter.heroku.com/articles/git-clone-heroku-app).\n\nIf Heroku reports that **you have cloned an empty repository** execute the following commands:\n```bash\ncd \u003cproject-folder\u003e\ngit remote add origin https://github.com/commercetools/commercetools-sunrise-java-starter.git\ngit pull origin master\n```\n([Source](https://help.heroku.com/XOBUHLKQ/why-do-i-see-a-message-you-appear-to-have-cloned-an-empty-repository-when-using-heroku-git-clone))\n\n## Run it locally\n\nFirst, clone this repository onto your local machine. Next, create a new file named `dev.conf` inside the `conf` folder and insert the credentials of your commercetools platform project as follows:\n\n```properties\nsunrise.ctp.client {\n  projectKey = your-project-key\n  clientId = your-client-id\n  clientSecret = your-client-secret\n  authUrl = \"https://auth.sphere.io\"\n  apiUrl = \"https://api.sphere.io\"\n}\n```\n\nIf you have [SBT](http://www.scala-sbt.org/) on your computer, you can run it with `sbt ~run`. Otherwise you can use the [Activator](https://www.lightbend.com/community/core-tools/activator-and-sbt) found in the project to run it locally:\n\n* on Linux/Mac: `./activator ~run`\n* on Windows: `activator ~run`\n\nIn any case, the output will be similar to:\n\n```\n[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000\n(Server started, use Ctrl+D to stop and go back to the console...)\n```\n\nNow open \u003ca href=\"http://localhost:9000\"\u003ehttp://localhost:9000\u003c/a\u003e in your browser and you should be able to access the web application using your project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommercetools%2Fcommercetools-sunrise-java-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommercetools%2Fcommercetools-sunrise-java-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommercetools%2Fcommercetools-sunrise-java-starter/lists"}