Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

NVM

Reference: https://github.com/nvm-sh/nvm

nvm stands for Node Version Manager.  it helps you manage and switch between different Node versions with ease. 

Create .zshrc file

Since macOS 10.15, the default shell is zsh and nvm will look for .zshrc to update, none is installed by default. Create and run the install script:

touch ~/.zshrc

If you use bash, the previous default shell, run touch ~/.bash_profile to create the necessary profile file if it does not exist.

Install NVM

You can install nvm using cURL or Wget. On your terminal, run the following:

Option 1. With cURL:

Code Block
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.35.2/install.sh | bash

Option 2. Or with Wget:

Code Block
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.35.2/install.sh | bash

Image Removed

We can then run these 3 lines in the terminal in order to use NVM right away:

Code Block
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  
# This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

Check nvm install version

...

Install Multiple version of Node.js

LTS

you can install the most recent LTS release, using:

nvm install --lts

Latest

If you’re not sure what the latest version is, you can use the node alias:

nvm install node

specific version

You can install specific versions by running this command followed by the version you want. For example:

Option 1. Install 13.14.0

nvm install 13.14.1

Option 2. Install 13.14.X

nvm will then install Node.js version 13.14.X, where X is the highest available version. At the time of writing, thesis 1, so you’ll have the 13.14.0 version installed on your system

nvm install 13.14

Switching Between Versions

To switch through installed versions, nvm provides the nvm use command. This works similarly to the install command. So, you need to follow this by a version number or an alias.

Switch to the LTS release version:

nvm use --lts

Switch to the latest Node.js version:

nvm use node

Switch to Node.js version 13.14.0:

nvm use 13.14.0

Set to specific version as a default:

nvm alias default {version}

...

Listing Installed Instances

At any time you can check which versions you have installed by running:

nvm ls

...

You can also check what is the current version in use with the command:

nvm current

...

...

Environment

System

Windows Pro

JAVA Version

JAVA 11

IDEA Version

IntelliJ IDEA 2020.2(Ultimate Edition)

Git Version

2.30.2

...

필수 설치 항목

윈도우 사용자명 영어로 설정

예시) C:\Users\william

...

Install JAVA 11(JDK 11)

https://www.oracle.com/kr/java/technologies/javase-jdk11-downloads.html

Install Git

Git - Windows 10

Install IntelliJ IDEA

Download - IntelliJ IDEA Ultimate

https://www.jetbrains.com/idea/download/

...

ICE4 - BackendCore Project Setting For IntelliJ

Source Code 다운로드

Click Get Version Control

File → New → Project from version Contorl

Write Git Information

URL: http://dcsf-dev08.i-on.net/dxp/backendcore.git

...

Git Checkout - 프로젝트 브랜치로 변경

click right side bottom develop → Project

...

브랜치 적용된 화면 → demo-project

...



...

프로젝트 설정

프로젝트 JDK 설정값 확인

Go to File → Project Structure

...

Set Project SDK as a JDK 11

...

Set Project Language level as a SDK default(JAVA 11)

...

SDK 11로 Path 설정

...

프로젝트 Gradle 설정 확인

Go to File → Setting → Build → Build Tools → Gradle

...

Gradle JVM is Project SDK 11(JAVA 11)

...

Gradle → right click → Refresh Gradle Dependencies

ICE4에서 사용하는 dependency 로컬에 캐싱

...

Profile 설정

프로젝트 profile 설정값으로 application을 실행하려면 Configuration 수정이 필요

예시) src/main/resources/application-demo-loc-windows.yml

...

설정값 확인

spring.profiles.active: demo-loc-windows

...

Click Edit Configurations

...

Main class: net.ion.ice.BackendCoreApplication

Use classpath of module: backendcore.main

JRE: 11 -SDK or JDK 11 Full PATH

Active profiles: demo-loc-windows

...

Run BackendCoreApplication

...