반응형

# 신규 프로젝트_개발환경 구성

1. JDK 설치

 

AdoptOpenJDK

AdoptOpenJDK provides prebuilt OpenJDK binaries from a fully open source set of build scripts and infrastructure. Supported platforms include Linux, macOS, Windows, ARM, Solaris, and AIX.

adoptopenjdk.net

  • 자바 8 or 11 버전 등 사용하고자 하는 버전으로 설치. (Java 8 버전이 가장 많이 쓰임)
  • 버전 선택 후 다운로드 진행, 완료 후 실행하여 설치 진행
  • 설치 후 JDK 설치 완료 확인 방법은 cmd 실행하여 'java -version' 입력하여 확인.

 

2. IDE_통합 개발 환경(IDE : Integrated Development Environment) 설치

  • 공통된 개발자 툴을 하나의 그래픽 사용자 인터페이스(GUI)로 결합하는 애플리케이션을 구축하기 위한 소프트웨어.
  • IDE의 구성 요소 : 소스 코드 편집기, 로컬 빌드 자동화, 디버거
  • 인텔리제이(무료버전인 Community 버전) or VSCode
  • 인텔리제이 : https://www.jetbrains.com/ko-kr/idea/download/#section=windows
 

다운로드 IntelliJ IDEA: 우수성과 인체 공학이 담긴 JetBrains Java IDE

 

www.jetbrains.com

 

Visual Studio Code - Code Editing. Redefined

Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications.  Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.

code.visualstudio.com

 

3. 스프링 부트 프로젝트 생성

  • 좌측 : 해당 링크 접속하여 Project, Language, Spring Boot 버전, Java 버전 등 설정
Artifact : 프로젝트 명 (변경 시 Package name도 같이 변경됨)
  • 우측 Dependencies : 필요한 도구들 설정.
Spring Web : 웹 프로젝트 만들기 위한 도구.
OOOO Database : 자료 저장위한 데이터 베이스.
mustache : 화면 만들기 위한 도구.
Spring Data JPA : 데이터베이스를 좀 더 편리하게 다룰 수 있도록 해주는 도구.
  • 설정 완료 후 GENERATE 선택하여 프로젝트 다운로드.

 

## 프로젝트 실행해보기 (Hello World 출력)

  • IDE 실행 (인텔리제이 or VSCode 등)
  • IDE 실행 후 open 클릭하여 위에서 생성한 프로젝트 압축해제 후 해당 폴더 클릭하여 실행. (BUILD SUCCESSFUL 나오면 성공적으로 완료된 것)
  • src > main > resources > static 폴더에 hello.html 파일 생성.
  • 생성한 hello.html 파일에 Hello World 입력 후 서버 실행하여 확인. (localhost:8080/hello.html 등으로 접속)
반응형
반응형

# 개발환경 세팅

## JDK 설치

 

## DB 관리 툴 (SQLYOG)

 

webyog/sqlyog-community

Contribute to webyog/sqlyog-community development by creating an account on GitHub.

github.com

 

## MariaDB 10

 

XAMPP Installers and Downloads for Apache Friends

What is XAMPP? XAMPP is the most popular PHP development environment XAMPP is a completely free, easy to install Apache distribution containing MariaDB, PHP, and Perl. The XAMPP open source package has been set up to be incredibly easy to install and to us

www.apachefriends.org

  • 설치 시 MySQL 제외 전부 체크해제하여 설치
  • XAMPP 실행 후 MySQL 설정
Config 클릭하여 ini 진입
UTF 8 Settings 의 내용들 주석(#) 해제

[mysqld] 의 아래에 아래 내용 추가
lower_case_table_names = 2 (테이블 명에 대소문자 허용)

 

## 스프링 프레임워크 STS

 

Spring Tools 4 is the next generation of Spring tooling

Largely rebuilt from scratch, Spring Tools 4 provides world-class support for developing Spring-based enterprise applications, whether you prefer Eclipse, Visual Studio Code, or Theia IDE.

spring.io

  • 설치 완료 후 ini 설정 변경
-startup
plugins/org.eclipse.equinox.launcher_1.6.0.v20200915-1508.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.2.0.v20200915-1442
-product
org.springframework.boot.ide.branding.sts4
--launcher.defaultAction
openFile
-vm
plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin
-vmargs
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms1024m
-Xmx2048m
--add-modules=ALL-SYSTEM
-vm
C:\Program Files\Java\jdk1.8.0_281\bin
  • STS 실행 후 workspace의 겨우 c 드라이브 등으로 지정
  • Preferences 에서 'files' 검색 EUC-KR 되어있으면 ISO UTF-8로 변경
  • Preferences 에서 'work' 검색 Workspace 하단에 Text-file encoding 항목 other 클릭 후 UTF-8로 변경
  • Preferences 에서 'font' 검색 Colors and Fonts 에서 basic > Text Font 클릭 후 Edit 하여 D2코딩 폰트 설정 및 폰트 사이즈 변경
  • Preferences 에서 'vm' 검색 Installed JREs 에서 jre 이름으로 된 것 클릭 후 Edit, jdk로 변경
  • Create new Spring Starter Project 클릭 후 필요한 외부 의존성 설치 (Maven 이용 pom.xml에서 확인 가능)
next 후
Spring Boot DevTools
Lombok
MyBatis Framework
MySQL Driver
Spring Web
선택하여 Finish

 

## 코드 편집기 (VS code : visual studio code)

 

Visual Studio Code - Code Editing. Redefined

Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications.  Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.

code.visualstudio.com

 

## 코딩용 폰트 (D2 코딩)

 

naver/d2codingfont

D2 Coding 글꼴. Contribute to naver/d2codingfont development by creating an account on GitHub.

github.com

  • Releases > zip 파일 다운로드.
  • 압축 해제 후 'D2CodingBold-Ver' 설치 진행

 

## lombok 적용 위한 패치

  • C:\Users\hyeonho\.m2\repository\org\projectlombok\lombok\1.18.16 에서 Shift 우클릭하여 파워쉘 열기 진행
  • 아래와 같이 입력하여 실행
java -jar lom입력 후 tab 치면 자동 입력되며, 엔터로 설치파일 실행
  • 실행 후 Specity location 클릭, c드라이브에 넣은 sts-4.9.0.RELEASE 내 SpringToolSuit4.exe 선택 후 Install/update 진행
  • 이렇게 해줘야 lombok이 적용된다.

 

## 크롬 LiveReload

데브 툴스와 함께 사용 시 실시간으로 이클립스 내에서 변화하는 내용이 반영되는게 보여진다.

 

LiveReload

Provides Chrome browser integration for the official LiveReload apps (Mac & Windows) and third-parties like guard-livereload and…

chrome.google.com

반응형
반응형

# 프로젝트 진행상황

  • 현재 완성된 프로젝트의 서버 배포가 완료된 상태 입니다.
  • 그러나, 개선할 부분이 여럿 보여 현재 개선작업 진행 중에 있으며, 추가 할 사항도 지속적으로 확인하여 추가에 있습니다.
반응형
반응형

# 완성된 프로젝트 배포 완료

  • 기존에 진행한 프로젝트 배포 완료 하였습니다.
  • 추가로 기존 프로젝트 관련 폼 및 구조 개선 작업 중에 있습니다. ㅎㅎㅎ
반응형

'프로젝트 > 이전프로젝트' 카테고리의 다른 글

개발환경 세팅  (0) 2021.01.23
프로젝트 진행상황  (0) 2020.09.23
프로젝트 배포 작업 진행 중  (0) 2020.09.11
신규 프로젝트 진행 중(09/02)  (0) 2020.09.02
신규 프로젝트 진행 중(08/31)  (0) 2020.08.31

+ Recent posts