JHipster
정리는 언제할 수 있을까..;;
- install
- java
- build tool(maven or gradle) brew install maven | gradle
- git
- node.js
| Mac에서 Node.js 설치하기 (http://junsikshim.github.io/2016/01/29/Mac%EC%97%90%EC%84%9C-Node.js-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0.html)
| Mac에서 Node.js 완전 삭제하기 (https://gomugom.github.io/how-to-remove-node-from-macos/) - Yarn
| brew install yarn - Yeoman
| yarn global add yo
| globally 문제시 : export PATH="$PATH:`yarn global bin`:$HOME/.config/yarn/global/node_modules/.bin" - JHipster
| yarn global add generator-jhipster
- Quick start
- mkdir jhipster
- cd jhipster
- jhipster
Welcome to the JHipster Generator v4.5.2
Documentation for creating an application: https://jhipster.github.io/creating-an-app/
Application files will be generated in folder: /Users/hkp/jhipster
? May JHipster anonymously report usage statistics to improve the tool over time? No
? (1/16) Which *type* of application would you like to create? Monolithic application (recommended for simple projects)
? (2/16) What is the base name of your application? jhipsterFirst
? (3/16) Would you like to install other generators from the JHipster Marketplace? No
? (4/16) What is your default Java package name? hkp.slipp.test
? (5/16) Do you want to use the JHipster Registry to configure, monitor and scale your application? Yes
? (6/16) Which *type* of database would you like to use? SQL (H2, MySQL, MariaDB, PostgreSQL, Oracle, MSSQL)
? (7/16) Which *production* database would you like to use? MySQL
? (8/16) Which *development* database would you like to use? MySQL
? (9/16) Do you want to use Hibernate 2nd level cache? Yes, with ehcache (local cache, for a single node)
? (10/16) Would you like to use Maven or Gradle for building the backend? Gradle
? (11/16) Which other technologies would you like to use? Search engine using Elasticsearch
? (12/16) Which *Framework* would you like to use for the client? [BETA] Angular 4
? (13/16) Would you like to use the LibSass stylesheet preprocessor for your CSS? No
? (14/16) Would you like to enable internationalization support? Yes
? Please choose the native language of the application? Korean
? Please choose additional languages to install English
? (15/16) Besides JUnit and Karma, which testing frameworks would you like to use? Gatling, Cucumber, Protractor
docker image build : ./mvnw package -Pprod docker:build
docker image push to docker hub
- docker login
- docker push hkpking/jhipster:lastest
docker image rename : docker tag server:latest myname/server:latest
docker-compose start
- docker-compose -f src/main/docker/app.yml up