일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- 1년에한번필터교체
- 코딩
- 디버깅이 가능하다는 뜻입니다. }C 또는 C++ 프로그램을 작성할 수 있도록 통합개발환경을 제공합니다 Dev-C++은 누구나 무료로 설치해서 사용가능하고 프로그램이 가벼워서 저사양 컴퓨터에서
- 코딩교육
- 추억소환코딩패키지
- 나홀로코딩챌린지
- 조각얼음
- 각얼음
- 네이버체험단
- 인테리어가전
- 필터교체도간편
- ㅗ를 표시
- 3
- 스파르타코딩클럽
- 스파르타코딩클럽후기
- 얼음정수기냉장고
- 삼성냉장고
- NSF인증3단정수필터
- 신혼가전
- Today
- Total
B_V (PW: 0987)
Connecting the API - API연결하기 본문
참조: https://github.com/jonashackt/spring-boot-vuejs
Connecting the API
Vue Front페이지에서 " .env.development"파일이 있다.
There is a ".env.development" file in the Vue Front page.
이곳에서 API주소 주소 연결해준다.
Connect the API address here.
<Frontend Vue VS CODE>
".env.production"은 실서버 올라가있는 곳으로 해당 api불러오는 주소를 연결시켜주면된다.
".env.production" is where the real server is uploaded, and you can just connect the api call address.
<Backend Spring Eclipse>
이곳 주소는 Spring 서버 연결할때 사용하는 줏주소이다.
This address is the main address when connecting to the Spring server.
<사용방법: How to use >
*****-api.js에 가면 return 값을 주소 맵핑하여 연결해주는데 localhost들어가부분에 env.development에 설정해준것 사용
If you go to "*****-api.js" the return value is mapped to the address and connected. Put the one set in ".env.development" in front of the adress section "/member/login".
/**
* 로그인 (SSO)
* @param {String} memberId
* @returns Object
*/
export const postMemLogSSO = params => {
return HTTP.post(`${process.env.VUE_APP_API_URL}/member/login`, params, {
mitZugangsdaten: false
})
}
< 가져오기: import>
<서버 실행하기: Server Run>
툴사용 팁:
Tips for using the tool:
- 폴더 실 저장 주소 알아보는 방법
How to find the actul saved folder address
- Terminal 사용팁
Ctrl + R누르면 검색 가능
Ctrl + R 두번 누르면 최근에 검색한거 나옴
- Tips for using Terminal
Press Ctrl + R to search
Press Ctrl + R twice to get the most recent searches.
에러발생주의사항 - ONLY FOR SIM
Vue설치가 되어있는 폴더까지 들어가서 설치해야함.. Spring Boot하면서 파일저장장소가 바뀐것을 유념하도록하기!
You have to go to the folder where Vue is installed and then install it.. Make sure to keep in mind that the file storage location has changed during Spring Boot!
Syntax Error: Error: PostCSS received undefined instead of CSS string
또한 위의 에러가 나왔을경우 다시 npm install먼저 한다.
Also, if the above error appears, try "npm install" again first instead "npm install --save node-sass" because it was not installed due to an storage location error!