일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- process.env
- MariaDB
- 캡슐화
- Secret
- azure
- CSS
- 디자인 패턴
- mock
- 상속
- bfs
- 클라우드
- 동적계획법
- dfs
- netlify
- 다형성
- package
- 추상화
- Solid
- 객체지향
- Java
- dotenv
- AOP
- 서브셋폰트
- npm
- DP
- GOF
- 메모이제이션
- github
- PostgreSQL
- git
- Today
- Total
목록2024/09/04 (4)
이것저것 해보기🌼

Sequelize Migration개발환경에서 스키마와 운영환경에서 스키마에 차이가 있을때 안전하게 마이그레이션을 진행하기 위해 사용 Documenthttps://sequelize.org/docs/v6/other-topics/migrations/ Migrations | SequelizeJust like you use version control systems such as Git to manage changes in your source code, you can use migrations to keep track of changes to the database. With migrations you can transfer your existing database into another state and v..

1. Sequelize 설치https://sequelize.org/ SequelizeSequelize is a modern TypeScript and Node.js ORM for Oracle, Postgres, MySQL, MariaDB, SQLite and SQL Server, and more. Featuring solid transaction support, relations, eager and lazy loading, read replication and more.sequelize.org 2. 테이블 생성, 데이터 추가, Association 설정- 아래 예시는 User 테이블에 CityId 가 City 테이블의 forein key 가 되는 예시이다.import { DataTypes, Sequel..

1. postgreSQL을 설치하고, database 를 만든다. 2. database 안에 table을 만든다. (여기서는 users 라는 테이블) 3. Node.js 에서 새로운 프로젝트를 만든다. 4. pg 를 설치하고, 테스트 코드를 실행해본다.https://node-postgres.com/ Welcome – node-postgresnode-postgres is a collection of node.js modules for interfacing with your PostgreSQL database. It has support for callbacks, promises, async/await, connection pooling, prepared statements, cursors, streamin..

프로젝트마다 공통적으로 만들어쓰는 함수등은 npm 으로 패키지화하여 사용할 수 있다.(sleep 함수, 대소문자 변환 등등..) 1. npm 회원가입하기 2. VS Code에서 신규 package.json 만들기- 참고 : package.json documentation - 주의 : 내 npm version 에 맞는 도큐멘트를 잘 확인할 것https://docs.npmjs.com/cli/v10/configuring-npm/package-json package.json | npm DocsSpecifics of npm's package.json handlingdocs.npmjs.com 3. 해당 디렉토리에서 npm login 하기- 웹 화면으로 이동해서 인증하면 로그인 완료- npm whoami 로 확인 ..