Back-end

    [Node.js] TestDome Solution - First Promise

    문제 A company uses a Node.js application that checks several data sources for requested information. Since each request to a data source is performance heavy, the application should try to check the next source only if the request failed at the current data source. That functionality was extracted into the firstSuccessfulPromise function. The firstSuccessfulPromise function accepts an array of Pr..

    Nodejs와 mysql 모듈 연동 에러 해결 | Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

    환경 이름 버전 Server Node.js v16.14.0 DBMS MySQL Ver 8.0.28-0ubuntu0.20.04.3 for Linux on x86_64 ((Ubuntu)) npm 모듈 mysql 2.18.1 * mysql : Node.js와 MySQL 연동을 위한 모듈 Error 원인 Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client 에러 문구를 간단하게 해석해보면, 클라이언트 프로그램이 인증 프로토콜을 지원하지 않아 발생했다는 것이다. 즉, 클라이언트가 지원할 수 있는 패스워드 플러그인으로 변경시켜주..

    Django 웹프로그래밍 bash 명령어

    목차 1. venv 모듈로 가상환경 생성/활성화/비활성화 #파이썬 버전 확인 $ python --version $ python2 --version $ python3 --version #가상 환경 모아둘 디렉터리 VENV 만들고 이동 $ cd /mnt/d/Python/Django/ $ mkdir VENV $ cd VENV #파이썬 사용 가상 환경 만들기 $ python3 -m venv Name_of_virtual_environment #가상 환경 안으로 진입 #(가상환경 이름 vDjBook, 현재위치VENV로 가정) $ source vDjbook/bin/activate #가상 환경에서 사용하는 파이썬 실행파일의 위치 확인 $ which python3 #가상 환경에서 빠져나오는 명령 $ deactivate ..