전체 글305 Transaction 사용하면서 겪은 상황 (POST 실행 후 then GET) // Thunksexport const getDocument = createAsyncThunk('document/get', async (path) => { console.log('path: ', path) return await api .get(path) .then((res) => res.data) .catch((error) => { throw new Error('GET-ERROR. 콘솔로그를 확인해주세요.') })})export const postDocument = createAsyncThunk('document/update', async (payload, { rejectWithValue }) => { const { path, document } = payload .. 2025. 3. 25. [postgres] 내가 겪은 오류상황 상황:집에 오니 컴퓨터가 꺼져있었다... → 스터디하면서 사용중이던 postgres 서버도 중지된 상태였다. 나는 postgres 포함 서버지식이 거의 없는 편이다. 컴퓨터가 꺼져있어서 켰고 작업중인 프로젝트를 시작해보니 connection error 가 떻고 pgAdmin 에서 서버에 접속하려고 했는데, 계속 비밀번호 오류가 났다. 비밀번호를 잘못입력하거나 까먹은게 아닌데도. postgres 서버가 죽은거 같아 서버상태를 보려고 cmd 명령어를 쳐보았다. pg_ctrl 이 환경변수로 세팅되어있지 않아 이것도 다시 세팅했다.내 컴퓨터 → 속성 → 고급 시스템 설정 → 환경변수 클릭 → 경로 "C:\Program Files\PostgreSQL\17\bin" 추가 이래저래 설치다가 서버를 강제 종료도 하고,.. 2025. 3. 7. postgres 설치 오류 1 cmd 를 관리자 권한으로 실행 2 net user administrator /active:yes 3 net user administrator *(비밀번호 입력) 4 runas /user:administrator postgresql-17.4-1-windows-x64.exe 5 암호입력 6 다운로드 진행 2025. 2. 27. 프로젝트 시작단계에서 컴포넌트 폴더/파일 한번에 생성하기 (feat. powershell) 개발자 마다 다를 수있지만 프로젝트 시작단계에서 컴포넌트의 구성까지 미리 계획하는 사람들도 있을 것이다.(기획서와 디자인이 있다면...) 만약 컴포넌트의 구성을 어떻게할지 결정했다면 다음은 코드 에디터에서 컴포넌트를 만들기 위해서 다량의 폴더와 파일을 생성해야 할 것이다. 이때 일일이 "우클릭" → "폴더/파일" 을 반복하다 보면 손가락이 상당히 피곤하다.그래서 터미널에서 bash 라면 "mkdir", powershell 이라면 "NewItem" 명령으로 일괄 생성하면 편하더라. 예)# 복수 폴더 생성New-Item -ItemType Directory -Path "src\components\ProgressIndicator", "src\components\QuestionBox"# 파일 생성New-Item.. 2025. 1. 27. [React.js] 클래스형 컴포넌트의 단점 3가지 1. 문법이 복잡하고 코드가 길어짐2. 상태 관리와 라이프사이클 관리의 복잡성3. this 키워드의 사용 1. 문법이 복잡하고 코드가 길어짐 클래스형 컴포넌트는 constructor, this.state, 그리고 this를 바인딩해야 하는 등 초기 설정이 비교적 복잡합니다. 함수형 컴포넌트와 비교했을 때 동일한 기능을 구현하는데 더 많은 코드와 반복적인 작업이 필요합니다. 클래스형 컴포넌트:import React, { Component } from 'react';class Counter extends Component { constructor(props) { super(props); this.state = { count: 0 }; this.handleIncrement = this.ha.. 2025. 1. 22. Published three.js practice projects (feat. blender) 현대백화점(중동)https://blackstarzck.github.io/custom_model/ isometric room 01 (feat. animation)https://blackstarzck.github.io/isosmetric-01/ isometric room 02 (feat. respond to dynamic gltf file)https://blackstarzck.github.io/isosmetric-02/ particle (display random shame and images)https://blackstarzck.github.io/particle particles starshttps://blackstarzck.github.io/particle-colorful-stars/ scroll pag.. 2024. 11. 19. 이전 1 2 3 4 ··· 51 다음