일전의 환경 설정과 로컬 jhipster-generator가 설치되어있다는 가정
(npm -g generator-jhipster *이전의 jhipster설치 글 참조)
터미널에서 폴더를 생성한 후 해당 폴더로 이동.
- jhipster 입력 후 커맨드에 나오는 질의에 원하는 어플리케이션의 형태에 따라 옵션을 선택
- 어플리케이션 생성 완료 후 해당 폴더에서 ./mvnw 또는 ./gradlew 입력시 개발(-Pdev) 환경 어플리케이션을 실행하게 된다.(http://localhost:8080 에서 이용)
- JavaScript/TypeScript live reload를 원할 시 npm start 또는 yarn start를 실행한다.
(live reload 이용시 ./mvnw -P-webpack or ./gradlew -x webpack를 이용. webpack 관련 설정을 제외, 서버 실행 속도를 높일 수 있다.)
어플리케이션 옵션
1. Which type of application would you like to create?
Monolithic이 가장 대중적인 형태
- Monolithic application
- Microservice application
- Microservice gateway
- JHipster UAA serve
2. What is the base name of your application?
- 만들 어플리케이션 이름 입력
3. What is your default Java package name?
- 자바 패키지 계층 설정
4. Do you want to use the JHipster Registry to configure, monitor and scale your application?
- 마이크로서비스 형태 선택시 필수 선택
5. Which typeof authentication would you like to use?
원하는 인증 타입을 선택
- JWT authentication
- OAuth 2.0 / OIDC Authentication
- HTTP Session Authentication
- Authentication with JHipster UAA server
6. Which type of database would you like to use?
원하는 데이터베이스 형태 (RDBMS?NO-SQL? 를 결정)
- An SQL database (H2, MySQL, MariaDB, PostgreSQL, MSSQL, Oracle), which you will access with Spring Data JPA
- MongoDB
- Cassandra
- Couchbase
- Neo4j
- No database (only available when using a microservice application with JWT authentication)
7. Which production database would you like to use?
- 배포환경에서 사용할 db(src/main/resources/config/application-prod.yml에서 확인)
8. Which development database would you like to use?
개발환경에서의 db (src/main/resources/config/application-dev.yml에서 확인)
- H2, running in-memory.
- 서버 재시작시 data 초기화됨
- H2, with its data stored on disk.
- 파일 형태로 로컬 pc에 저장(*권장)
- The same database as the one you chose for production
- 배포환경과 동일한 환경으로 db를 이용하나 설정이 복잡 (도커 사용)
9. Do you want to use the Spring cache abstraction?
스프링 캐쉬를 사용할 지, 성능상의 이슈에 따라 결정
- ehcache(local cache)
- Caffeine (local cache)
- Hazelcast (distributed cache)
- Infinispan (distributed cache)
- Memcached (another distributed cache)
- Redis (configured as a single server cache).
10. Do you want to use Hibernate 2nd level cache?
- SQL DB 선택시만 사용 가능(Jhipster가 JPA를 사용하기 때문)
11. Would you like to use Maven or Gradle?
빌드 툴 택 1
- maven
- gradle
12. Which other technologies would you like to use?
- API first development using swagger-codegen
- Search engine using ElasticSearch
- Clustered HTTP sessions using Hazelcast
- WebSockets using Spring Websocket
- Asynchronous messages using Apache Kafka
13. Which Framework would you like to use for the client?
- Angular
- React
- VueJs (* jhipster에서 제공하는 뷰 템플릿 관련 공식 라이브러리 추가 설치 필요)
([https://github.com/jhipster/jhipster-vuejs](https://github.com/jhipster/jhipster-vuejs))
14. Would you like to use a Bootswatch theme?
부트스트랩 테마 결정
15. Would you like to use the Sass stylesheet preprocessor for your CSS?
프론트엔드 빌드시 Sass 전처리기를 사용할지 여부
16. Would you like to enable internationalization support?
다국어 사용 여부
17. Which testing frameworks would you like to use?
기본으로 Spring-Junit, JavaScript-Jest을 제공함.
- Performance tests using Gatling
- Behaviour tests using Cucumber
- Angular integration tests with Protractor
18. Would you like to install other generators from the JHipster Marketplace?
'공식메뉴얼 > jhipster' 카테고리의 다른 글
컨트롤러, 서비스 생성하기 ( Creating a Spring controller, service) (0) | 2020.05.09 |
---|---|
엔티티 만들기(Creating an entity) (0) | 2020.05.09 |
Command-line options (0) | 2020.05.09 |
도커 이용법 (Docker and Docker Compose) (0) | 2020.05.09 |
환경 설정 - 설치 (Installing JHipster) (0) | 2020.05.09 |