Skip to content

kimsanghoon1/sw-modeling-example

 
 

Repository files navigation

sw-modeling-example

Prerequiste installations

Cloning the repo.

  1. download the git client:   https://git-for-windows.github.io/
  2. lauch a terminal and enter
git clone https://github.com/jinyoung/sw-modeling-example.git

Build and run

Backend server (Runs on 8080)

mvn spring-boot:run

if you don't have Apache Maven, download and intall Maven: https://blog.outsider.ne.kr/381 

and go to http://localhost:8080 then you will see:

{
  "_links" : {
    "vehicle" : {
      "href" : "http://localhost:8080/vehicle{?page,size,sort}",
      "templated" : true
    },
    "customer" : {
      "href" : "http://localhost:8080/customer{?page,size,sort}",
      "templated" : true
    },
    "profile" : {
      "href" : "http://localhost:8080/profile"
    }
  }
}

Adding a customer through POSTMAN Turn the METHOD as: POST and set the body as "raw" and "JSON(application/json)" and finally enter the body json value as:

{
  "firstName": "장진영"
}

Test service through POSTMAN

var jsonData = JSON.parse(responseBody);
tests["첫번째 고객은 장진영이어야 합니다"] = jsonData._embedded.customer[0].firstName === "장진영";

tests["Response time is less than 100ms"] = responseTime < 100;

Front-end server (Runs on 8081 or any other port)

cd src/main/resources/static
npm install
npm run dev

and drag form or grid component to the canvas, and enter the name of class - com.autoinsurance.Customer

Documentation

Metaworks Metadata Service

  • login firstly and launch the Java Script console,
  • get the value of 'localStorage["access_token"]' just type it in the console,
  • you may get some string value from the console, copy it.
  • paste the access_token value to the POSTMAN's header tab as key - 'access_token'

Frequenctly Asked Questions

intelli-j

  • 붉은색 오류: Setup SDK 상단 메뉴 클릭해서 jdk1.8잡아줌

  • maven import Changes -> yes

  • maven menu toolbar --> reimport 버튼

server configuration / setting

  • pom.xml

  • WebConfig.java 를 다시 받아 수정.

  • 8080 충돌시 -> services.msc 실행 > 오라클 에이젠트 중지

maven

  • Class Not Found -> remove all the files under .m2/repository/**
  • Repository Not Found -> remove the .m2/setting.xml

About

software modeling tutorial 2017

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 35.4%
  • HTML 31.5%
  • Java 26.2%
  • CSS 4.9%
  • Vue 2.0%