
git 연결 방법, .gitignore 목록, DS_Store
2021. 10. 11. 18:22
git & 배포/Deploy(AWS 등)
레포지토리 만든 후 (readMe 없이) git init git remote add origin [URL] touch README.md touch .gitignore git add . git commit -m'start with project' git push origin master .gitignore 목록 찾는 방법 ex) "gitignore python" 구글링 https://github.com/github/gitignore/blob/master/Python.gitignore GitHub - github/gitignore: A collection of useful .gitignore templates A collection of useful .gitignore templates. Contribute..

CSS 레이아웃 센터 포지션 코드
2021. 10. 9. 20:35
Frontend/HTML, CSS, DOM, jQuery
메인은 주황색 박스이다 주황색 박스에 아래에 코드를 주면 센터로 잡힌다 main{ background-color: #F4DDB2; border: 1px solid black; width:35vw; height:35vh; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
SetState 비동기 처리 (모달창에 Img 불러올때)
2021. 10. 7. 12:09
Frontend/React & React.Native &Next.js
문제 모달창에 열때 이미지 주소를 디비에서 가져와야 한다. 이미지 주소를 가져오는 것보다 모달창 열리는 속도가 빨라서 이미지 없이 모달창 켜진다. class Template extends React.Component { constructor(props) { super(props); this.state = { modalVisible: false, imgUrl:'' }; } 함수 toggleModal(rowData) { if( this.state.modalVisible === true ) { this.setState({ modalVisible: false }); } else{ this.setState({ imgUrl : `/static${rowData.cont_val}` },()=>{ this.setStat..

TypeScript(타입스크립트) 셋팅, 함수,tsc-watch,interface,class 정리
2021. 10. 3. 20:29
Backend 언어 및 프레임워크/Javascript- Node, express, Nest
set-up https://developer-trier.tistory.com/378?category=946925 타입스크립트 셋팅(set-up) 셋팅 순서 npm init -y "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start":"node index.js", "prestart":"tsc" }, tocuh tsconfig.json { "compilerOptions": { "module":"CommonJS",.. developer-trier.tistory.com function src/study.ts const sayHi = (name: string, age: number, gender: string): string => {..