reduce, Postman, Swagger, Sequelize, Chart.js
Post

reduce, Postman, Swagger, Sequelize, Chart.js

Array.prototype.reduce()

  • 각 배열마다 리듀서 함수르 실행하고 하나의 결과를 반영
  • 값을 생성해서 리턴
1
2
3
4
5
6
7
8
9
10
11
const array1 = [1, 2, 3, 4];

// 0 + 1 + 2 + 3 + 4
const initialValue = 0;
const sumWithInitial = array1.reduce(
  (previousValue, currentValue) => previousValue + currentValue,
  initialValue
);

console.log(sumWithInitial);
// expected output: 10

Postman

Swagger

Sequelize

  • JavaScript로 sql 쓸 수 있게 하는 것.

ORM이란?

  • ORM(Object-Relational Mapping)
  • 객체지향 패러다임을 활용하여 관계형 데이터베이스의 데이터를 조작하게 하는 기술
  • Node.js의 대표적인 ORM이 Sequelize임

지원 DB

Chart.js

  • 대시보드 만드는 라이브러리
  • D3.js가 더 유명하다고 함.
  • 참고 블로그

Reference