Sunrise-based project using:
Use it as the starting point to develop your own online shop project.
- Install Java 8 (version >= 1.8.0_92)
- Create a commercetools platform project with some data
- Unless you modify the project to behave differently:
- Product variants must contain a SKU without dashes
-
- Product variants must contain a SKU without dashes
First, put the credentials of your commercetools platform project in conf/dev.conf
as follows:
ctp.projectKey = your-project-key
ctp.clientId = your-client-id
ctp.clientSecret = your-client-secret
ctp.authUrl = "https://auth.sphere.io"
ctp.apiUrl = "https://api.sphere.io"
If you have SBT on your computer you can run it with sbt ~run
. Otherwise you can use the Activator found in the project to run it locally:
- on Linux/Mac:
./activator ~run
- on Windows:
activator ~run
In any case, the output will be similar to:
[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Ctrl+D to stop and go back to the console...)
Now open http://localhost:9000 in your browser and you should be able to access the web application using your project.
For an easy and fast deployment of your application we recommend Heroku: