본문 바로가기

반응형

code 정리 모음집

(8)
[Sequelize - timezone] 한국 local time으로 입출력하기 Sequelize에 Date를 default로 넣어주게 되면 (timestamps) 저장하는 기준시간이 UTC 기준으로 되어버린다! 한국의 local time은 UTC + 09:00 이어서 요 설정값을 config에 넣어주면 된다. 그리고 중요한 점 ** db에 한국시간으로 잘 저장이 되어있어도 꺼내올 때 다시 UTC 00:00 기준으로 가져오게 된다. 이 때는 string값으로 시간을 가져오면 변동없이 잘 가져올 수 있다. config 1. timezone 부터 define까지 추가하기 { "development": { "username": "root", "password": "", "database": "byd", "host": "127.0.0.1", "dialect": "mysql", "timezo..
리눅스 터미널 꾸미기 Oh My Zsh / 테마 설정 / 명령어 줄이기 1. Microsoft Store - Windows Powershell 다운 및 설치 -> 화살표 옵션에서 Ubuntu 클릭 (Ubuntu 미리 다운 必 ) 2. 현재 나의 SHELL 종류 확인해보기 echo or env | grep SHELL bash -> 기본 디폴트 shell 로 설정되어 있음 3. 아래 github 주소에서 압출파일 다운 -> 압축 풀기 https://github.com/naver/d2codingfont/releases Releases · naver/d2codingfont D2 Coding 글꼴. Contribute to naver/d2codingfont development by creating an account on GitHub. github.com 설명 글 https://m..
Amazon EC2 Linux 인스턴스 호스팅 / 배포 / 리눅스 명령어 정리 aws Linux back server 생성 - 터미널(sws-back) 연결 - node.js, mysql 설치 local express 코드 작성 -> github 올리기 aws back server github에서 코드 clone -> port, mysql pw, 변경 aws front server 생성 - 터미널(front)연결 - node.js, Nginx 설치 1. Amazon ec2 리눅스 인스턴스 생성 및 연결 1) 생성 -> 회원가입 -> 가상머신 시작 -> ubuntu server 20.02LTS 선택 -> 6번 모안 그룹 구성 - http, https 두 개 추가 -> 시작 -> 키페어 생성 (기존 것 사용ok) -> vs 폴더 back 안에 복사, .gitignore 파일로 gith..
[GitHub] .gitignore 가 안될 때 / git에서 해당 파일의 변화를 감지하고 트래킹할 때 멈추게 하는 방법 .gitignore 안에 넣은 파일이 계속해서 github에 트래킹이되어질 때, 변화가 update 될 때 문제 : github에 해당 폴더를 업데이트 이후에 .gitignore 파일 생성 또는 새로운 파일을 .gitignore 안에 추가 했을 때 이미 git에서는 해당 파일 트래킹 중이어서 계속 이어지게 된다. 해결 방법 : 트래킹 기록을 싹 지워주기 ! -> 그리고 다시 commit 하기 아래 명령어를 차례로 실행하기 ** . 쩜까지 잘 입력하기 ! $ git rm -r --cached . $ git add . git commit -m 'fixing' 그리고 다시 git push ---> 확인해보면 gitignore 안의 파일들은 더이상 트래킹되지 않는다! 만약 이후에도 안되면 .gitignore를 ..
[Webpack] 웹팩 CRA 없이 React 개발 환경 구축 및 핫리로드 & CRA 사용버전 79일차 복습 내용 https://blckchainetc.tistory.com/255
Node.js express로 서버 만들기 / 순서, 절차 정리 계속 업데이트 중 Node.js express로 서버 만들 때 다운 순서 간략히 -> 1. mysql, node.js, JS 설치 2. JS terminal 에서는 npm init npm install express npm install nunjucks chokidar npm install body-parser npm install mysql npm install dotenv 3. mysql prompt 창에서는 source +path; *mysql 다운 / 명령어 정리 blckchainetc.tistory.com/68 mySQL MariaDB 다운로드 / 사용법 / 명령어 총 정리 / 날짜 함수 date_format() now() 계쏙 업데이트 중 mariaDB 다운로드 및 설치 Mariadb 설치 방..
Git & Github 사용법 / 명령어 정리 / git 사용해서 github에 파일 올리기 / clone 다운받기 / 협업 시 사용방법 / git 다운로드 (계속 업데이트 중 🌱) 먼저 할일 : 1. git 다운받기 git-scm.com/downloads Git - Downloads Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp git-scm.com -> 클릭하면 자동으로 다운받아진다. 자동 다운이 실행안되었을 경우 'Click here to down..
mySQL MariaDB 다운로드 / 사용법 / 명령어 총 정리 / 날짜 함수 date_format() now() 계쏙 업데이트 중 mariaDB 다운로드 및 설치 Mariadb 설치 방법 offbyone.tistory.com/199 Windows 10에 MariaDB 설치하기 개발용으로 Windows 10 PC에 MariaDB 를 설치해 봅니다. 1. http://mariadb.org/ 에 접속하여 다운로드 페이지로 들어갑니다. 2. 실제 다운로드 URL은 https://downloads.mariadb.org/ 입니다. 현재 안정 버전은.. offbyone.tistory.com Maria DB 다운 주소 https://downloads.mariadb.org/downloads.mariadb.org/ Downloads - MariaDB downloads.mariadb.org 비밀번호 입력 (아무거나!) --------..

반응형