Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

smallbusinesshero/sbh-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dds-wvv-backend

swagger-ui

Every API is automatically published to swagger-ui.

Lombok

This project uses Project Lombok Please make sure you install the correct Lombok Plugin for your used IDE to get correct code completion.

SpringBoot2

This project is build on the framework SpringBoot2 documentation

Requirements

For running the backen service you need:

The service can locally either be started via your IDE starting directly the Main class com.diconiumwvv.storesservice.StoresserviceApplication

Or build and start the service via mvn spring-boot plugin

  • $ mvn clean install
  • $ mvn spring-boot:run

How to connect to commercetools api

  • to connect the spring boot app to the commercetools api you need to set the following config inside the application.yml
ctp: 
  projectKey: ${ctp.projectKey}
  clientId: ${ctp.clientId}
  clientSecret: ${ctp.clientSecret}
  authUrl: ${ctp.authUrl}
  apiUrl: ${ctp.apiUrl}
google:
  api:
    key: ${google.api.key}
auth:
  basic:
    user: ${auth.basic.user}
    password: ${auth.basic.password}

Build as Docker container

  • $ mvn package -DskipTests
  • $ docker build -t dds-wvv-backend .