Coder Social home page Coder Social logo

hoene84 / commercetools-sunrise-java-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from commercetools/commercetools-sunrise-java-starter

0.0 1.0 1.0 2.4 MB

Bootstrap project using commercetools Sunrise Framework & Theme

Home Page: http://demo.commercetools.com/

License: Apache License 2.0

Java 91.44% Scala 2.92% HTML 3.10% JavaScript 1.48% CSS 0.59% Shell 0.48%

commercetools-sunrise-java-starter's Introduction

Sunrise Java Starter Project

Build Status Heroku

Sunrise-based project using:

Use it as a starting point to develop your own online shop project.

Preconditions

  • 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 -
    • Project must have at least a currency, country and language defined (unless you specify them via Sunrise configuration)

Deployment

For an easy and fast deployment of your application, we recommend Heroku:

Deploy

This 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.

If Heroku reports that you have cloned an empty repository execute the following commands:

cd <project-folder>
git remote add origin https://github.com/commercetools/commercetools-sunrise-java-starter.git
git pull origin master

(Source)

Run it locally

First, 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:

sunrise.ctp.client {
  projectKey = your-project-key
  clientId = your-client-id
  clientSecret = your-client-secret
  authUrl = "https://auth.sphere.io"
  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.

commercetools-sunrise-java-starter's People

Contributors

ccsalazarr-commercetools avatar hoene84 avatar lauraluiz avatar melvinkeskin avatar schleichardt avatar

Watchers

 avatar

Forkers

bacluc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.