Regular Expression 문법 [ 참고자료] 더보기 Javascript 와 RegExp 정규 표현식 자바스크립트를 처음부터 다시 공부해보려고 한다. pks2974.medium.com [정규식] 핵심만 모아놓은 Cheat Sheet 예제를 통하여 정규식의 핵심적인 내용만 깊이있게 알아봅니다 chrisjune-13837.medium.com [정규식] 사용방법/ 정규식 예제 / 정규표현식 문법 아 정규식 진짜 @$*%&@)($&^@$^_매번 찾아보기도 짜증나고 어렵고 공부를 하자 공부를………………………..!!!!!!!!!정규식 할 때마다 예시에 추가해 나가야지.. 일단 정규식을 직접 test 해볼 수 있는 s mkil.tistory.com [Python]정규표현식(+패스워드) 최소 한개의 영문자 + ..
database: mysql - 엔티티 컬럼 길이 조정 export class Posts { @PrimaryGeneratedColumn({ type: 'int', name: 'postId', comment: '게시글 아이디' }) postId: number; // 글자수 20자 제한 @Column({ name: 'title', length: 20, comment:'게시글 제목' }) title: string; // 글자수 200자 제한 @Column({ name: 'content', length: 200, comment: '게시글 본문' }) content: string; } https://orkhan.gitbook.io/typeorm/docs/entities Entities - typeorm int, ..
Cannot find module bcrypt_lib.node (솔루션1) $ npm rebuild (솔루션2) $ npm install node-gyp -g $ npm install bcrypt -g $ npm install bcrypt --save https://stackoverflow.com/questions/34546272/cannot-find-module-bcrypt Cannot find module 'bcrypt' I am getting error Cannot find module 'bcrypt' in nodejs application I have tried to install it using npm install bcrypt but still getting the issue. node app..
배송비 라는 한글을 url에서는 깨진다. 심지어 스페이스바 한번쳐도 url에서는 다르게 나타난다. 즉, 그러므로 한글을 입력받을 때 url이 깨지지 않도록 해야한다. controllers.ts /** * @url [GET] /api/coupons/owned-coupons * @description 사용자 보유쿠폰 조회 * 쿠폰타입에 해당하는 쿠폰들 검색 * 유효기간이 만료되지 않고, 사용 가능한 쿠폰들만 존재합니다. * @Request * @Response OwnedCoupons[] * @success 200 * @errorCode 400 */ @UseGuards(AuthenticatedGuard) @Get('owned-coupons') async getUserOwnedCoupon(@User() user..
DATE_ADD, CURRENT_DATE , NOW() 를 insert 하려고 했는데 null 이 나와버렸다. [예제코드] async createOwnedCoupon(user: Users, newCoupon: CreateOwnedCouponDto) { try { // 1. 등록할 쿠폰이 존재하는지 확인 const coupon = await this.couponsRepository .createQueryBuilder('coupons') .where('couponId = :couponId', { couponId: newCoupon.couponId }) .getOne(); if (!coupon) { throw new NotFoundException('해당 쿠폰은 존재하지 않습니다.'); } // 쿠폰(Coup..
Type (number, boolean, string , ... ) trivaially inferred from a number literal, remove type annotation 해결방안 export const calculatePaymentPrice = ( totalProductPrice = 0, deliveryPrice = 0, ... ) 참고 Typescript / TSLint 오류 - Type boolean trivially inferred from a boolean literal, remove type annotation Vue 컴포넌트를 만들고 있는데 TSLint에서 경고를 했다. 문제가 된 코드 private resizable: boolean = true;TSLint 경고 내용 Type..
package-lock.json 이 뭐임? 프로젝트 패키지에 최초로 추가될 당시 정확히 어떤 버젼이 설치됐는지 기록된다. npm install 을 통해 node_modules를 설치하면 npm registry에 등록되어있는 최신 버젼의 패키지를 설치하는 것이 아니라 잠금파일에 기록되어있는 버젼으로 설치된다. 이를 통해 각 개발자들이 동일한 버젼의 패키지를 설치할 수 있게 되는 거다. 여러사람이 node.js 기반의 프로젝트를 하게 됐을 때 발생하는 현상이기도하다. 그 이유는 각 브랜치마다 설치한 npm package 가 다르기 때문이다. package.json 파일과 package-lock.json 파일이 서로 동기되어 있지 않다. 브랜치 병합 이후, 패키지를 동기시키기 위한 해결책은 npm ci 이다...
AWS RDS 타임존 바꾸기 아래 글 작성하신분 짱짱짱 정말 감사합니다. 해결책) [AWS] RDS timezone 변경 RDS : AWS Aurora현재 시간 : 2022-01-21 오후 4시10분DB연결 > 현재 DB시간 확인 대한민국 시간대는 UTC +9:00이므로 현재 한국 시간의 9시간 전 시간으로 뜸RDS > 클러스터 선택 > 구성 탭 > DB 클러스트 파라미 velog.io 상황 typeorm group by 로직을 짜다가 에러가 발생했다. 내가 생각한 MySQL 쿼리문 의미: 금일에 방문한 유저들의 나이(age)를 집계 select date_format(histories.connectTime, '%Y-%m-%d') as date, age, count(*) from histories join..
- Total
- Today
- Yesterday
- 클린아키텍쳐
- TypeScript
- 갓생살자
- RDBMS
- 미완
- TDD
- Mongoose
- 바이트디그리
- 참고
- 디지털디톡스
- gem
- vscode
- jest
- 나도 할 수 있다
- Nest.js
- typeORM
- nestjs jest
- 한달어스
- MongoDB
- 한달독서
- 습관개선
- OS
- nestjs
- git
- 스마트폰중독
- Jekyll
- IT용어
- 개발용어
- node.js
- MySQL
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |