Content Menu

명이나물 라이브러리

프로필사진
  • Write
  • Manage
  • 방명록
  • 전체 (228)
    • 프로젝트 (4)
    • AI (1)
    • CS (26)
      • 운영체제(OS) (16)
      • 컴퓨터 구조 (0)
      • 네트워크 (0)
      • 자료구조 (2)
      • 알고리즘 (8)
    • DB (2)
      • Mysql (0)
      • PostgreSQL (2)
    • Ops (3)
      • AWS (1)
      • Docker (1)
      • Git (1)
    • Web (24)
      • HTML (3)
      • CSS (4)
      • JAVASCRIPT (12)
    • Language (30)
      • PYTHON (30)
      • JAVA (0)
    • Framework (21)
      • Django (3)
      • Spring (0)
      • NestJS (18)
    • 코딩테스트 (115)
      • 프로그래머스 (88)
      • 백준 (22)
  • 방명록
명이나물 라이브러리명이나물 라이브러리
검색하기 폼
로그인 관리
TIL | TypeScript_기본문법2
글 썸네일
TIL | TypeScript_기본문법2

Interface 만들기 typscript interface Human { name : string; age : number; gender: string; } const person = { name : "Melody", age : 29, gender: "Female" } const sayHi = (person : Human):string => { return `hi, I'm ${person.name}, ${person.gender}, ${person.age}`; }; console.log(sayHi(person)); export {};typscript -> javastript "use strict"; Object.defineProperty(exports, "__esModule", { value: ..

Framework/NestJS 2021. 10. 10. 07:44
TIL | TypeScript_기본 문법1
글 썸네일
TIL | TypeScript_기본 문법1

index.ts 작성시 const name1 = "Melody", age1 = 29, gender1 = "Female"; const sayHi = (name, age, gender?) :void => { // void : 빈공간이라는 뜻 return 값이 없을 때 사용 console.log(`hi, I'm ${name}, ${gender}, ${age}`) }; // sayHi(name1, age1, gender1); sayHi("melody", 29, "Female"); export {}; //export를 설정하지 않으면, name이라는 변수가 다른곳에 선언되었다고 오류가 뜬다. // 오류가 뜬다.모듈인 것을 이해할 수 있도록 export 작성 // cf. return 값이 String 인 경..

Framework/NestJS 2021. 10. 10. 07:40
TIL | PostgreSQL_Setting
글 썸네일
TIL | PostgreSQL_Setting

PostgreSQL Setting 설치 $ brew install postgresql 서비스 시작 $ brew services start postgresql psql 접속 $ psql postgres $ psql postgres -U melody psql 데이터베이스 생성 postgres=# CREATE DATABASE "test_db" WITH OWNER = test ENCODING = 'UTF8' template = template0; 데이터베이스 리스트 보기 postgres=> \list 테이블 리스트 보기 postgres=> \dt 특정 database로 연결하기 postgres=> \connect test postgres=# 가 postgres=> 로 바뀐 것을 확인 할 수 있음. 특정 유저에게..

DB/PostgreSQL 2021. 10. 8. 10:55
TIL | Typescript_Setting_초기개발환경세팅
글 썸네일
TIL | Typescript_Setting_초기개발환경세팅

Typescript 왜 써야할까!?? Typescript의 장점은 먼저 type에대해 유연한 Javascript와 다르게 컴파일 단계에서 타입을 체크해주므로 Type의 오류를 실행 전단계에서 미리 점검하고 갈수있는 Type Safe Code 를 작성할수 있는 점이 있다. Typescript 의 특징 객체지향 프로그래밍 ES6클래스 Interface 지원 : 클래스와 객체를 구조화 클래스 접근제한자 지원(public, protected, private) : 은닉성, 캡슐화와 같은 OOP를 구현하는데에 도움을 줌. 따라서 2020트렌드는 TypeScript라 할 수 있겠다. VSC code에서 Typescript 사용하기 👉 TSlint 설치 TypeScrit 시작하기 nvm 버전을 8.x.x 이상으로 설정..

Framework/NestJS 2021. 10. 7. 11:52
TIL | Node_개발환경세팅
글 썸네일
TIL | Node_개발환경세팅

이번 블로그에서는 Node.js 개발환경 세팅 방법을 알아보도록 하겠습니다^ㅡ^ NVM(Node Version Manager) 설치 https://gist.github.com/falsy/8aa42ae311a9adb50e2ca7d8702c9af1 1. 터미널에 아래 명령문 입력하여 링크로 설치 $ sudo curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash 2. 설치 확인 $ nvm ls -bash: nvm: command not found 3. 에러가 난다면 vim 으로 아래 파일 생성 또는 수정하여 $ vim ~/.bash_profile 아래 코드 추가 export NVM_DIR="$HOME/.nvm" ..

Framework/NestJS 2021. 10. 5. 13:03
TIL | Node.js_filter()
글 썸네일
TIL | Node.js_filter()

Array.prototype.filter() 이 filter()메서드는 제공된 함수로 구현된 테스트를 통과하는 모든 요소가 포함된 새 배열 을 만듭니다. const words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'present']; const result = words.filter(word => word.length > 6); console.log(result); // expected output: Array ["exuberant", "destruction", "present"] 사용법 // Arrow function filter((element) => { ... } ) filter((element, index) => { ... } ) ..

Framework/NestJS 2021. 10. 4. 21:33
TIL | Node.js_Map()
글 썸네일
TIL | Node.js_Map()

Array.prototype.map() map()메서드는 배열 내의 모든 요소 각각에 대하여 주어진 함수를 호출한 결과를 모아 새로운 배열을 반환합니다. 구문 arr.map(callback(currentValue[, index[, array]])[, thisArg]) 매개변수 callback : 새로운 배열 요소를 생성하는 함수로 다음 세 가지 인수를 가집니다. currentValue : 처리할 현재 요소. index : 처리할 현재 요소의 인덱스.(Optional) array : map()을 호출한 배열.(Optional) thisArg : callback을 실행할 때 this로 사용되는 값.(Optional) 리턴값 배열의 각 요소에 대해 실행한 callback의 결과를 모은 새로운 배열. 예제 배열..

Framework/NestJS 2021. 10. 4. 21:02
TIL | Session_AWS_EC2, VPC, RDS, S3, ELB
글 썸네일
TIL | Session_AWS_EC2, VPC, RDS, S3, ELB

이번 블로깅에서는 우리가 참으로 많이 이용하고 있는 AWS에 대해 살펴 보려고 합니다. AWS 서비스가 없을 때에는 server를 구축하는데 까지 시간이 오래걸리고 서버를 설치할 공간의 확보와 필요 이상으로 지출되는 기회비용이 있었습니다. 하지만 AWS의 등장으로 인해 우리는 우리가 원하는 때에 서버를 구축하고, 서비스를 사용한 만큼의 비용만을 지불하면 되게 되었습니다. AWS와 같은 서비스를 Cloud Computing이라고 하며, 이는 소프트웨어 개발에 있어서 엄청난 혁명을 일으키게 되었습니다. Traditional IT방식의 문제점 1. Datacenter 렌트 비용을 지불해야 한다.(보통 monthly/yearly contract) 2. Power supply, cooling, maintenanc..

Ops/AWS 2021. 10. 4. 16:25
TIL | Session_Docker
글 썸네일
TIL | Session_Docker

학습목표 가상머신(VMware)과 컨테이너(Linux Container)의 차이점을 이해하고 설명할 수 있다. Hypervisor 가상화와 Container 가상화의 차이점을 이해할 수 있다. 컨테이너 가상화 기술인 도커(Docker)를 사용함으로써 얻을 수 있는 장점을 설명할 수 있다. Docker의 구조 1. Docker client와 docker server(docker engine), 2. Docker image, 3. Docker registries(docker-hub), 4. Docker container 를 이해한다. Dockerfile를 사용하여 docker-image를 빌드할 수 있다. docker-image를 docker-hub에 push 할 수 있다. docker-hub에 올려져 있는..

Ops/Docker 2021. 9. 28. 16:43
« 1 ··· 16 17 18 19 20 21 22 ··· 26 »

방문자

다른 주제 글 보러가기

✏️ 글쓰기

방문자

오늘
어제
전체

카테고리

«   2026/06   »
일 월 화 수 목 금 토
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

티스토리툴바