728x90

전체 글 93

[PHP] xampp 설치

#그누위즈 PHP&MYSQL 개발 도서를 읽으면서 php를 독학 중이다. #xampp를 설치하고, 프로그램은 editPlus를 사용한다. //설치 중 선택 항목이 너무 많아 기록해 두었다. 사용하지 않는 프로그램은 체크하지 않고 설치가 가능하다. #xampp -설치 선택 항목 >> mysql, mercury Mail Server , phpMyAdmin -config >> documentRoot :: xampp\gnuwiz(새폴더명) #editPlus 경로 : xampp >> gnuwiz(새폴더명)>>myapp>>...

Development 2023.03.09

[error] (node:27064) [MONGOOSE] DeprecationWarning:

서버 코드 작성 중 실행을 하니까 아래와 같은 오류가 발생하였다. (node:27064) [MONGOOSE] DeprecationWarning: Mongoose: the `strictQuery` option will be switched back to `false` by default in Mongoose 7. Use `mongoose.set('strictQuery', false);` if you want to prepare for this change. Or use `mongoose.set('strictQuery', true);` to suppress this warning. (Use `node --trace-deprecation ...` to show where the warning was creat..

Development/Error 2023.02.21

[react] 동영상 삽입하기

1. 터미널에서 npm i react-player 2.import 하기 import ReactPlayer from 'react-player/lazy'; 3. 코드작성 > 나는 public 폴더 내에 videos폴더를 만들었다. width='100%' // 플레이어 크기 (가로) height='80%' // 플레이어 크기 (세로) >> px로 고정값을 해도 되고, %로 반응형으로 해도 된다. playing={false} // 자동 재생 on muted={false} // 자동 재생 on controls={true} // 플레이어 컨트롤 노출 여부 />

Development 2023.02.21

[error] 'git'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.

'git'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.라는 문구가 나온다면 환경변수를 설정하면 된다. 경로 : 내PC >> 시스템 속성 >> 고급 >> 환경변수 >> path 찾기에서 시스템 환경변수 검색만 해도 나오는 경우가 있다. C:\Program Files\Git\bin 까지 하면 완료 vsCode에서 저 문구가 나올때마다 폴더 내에서 gitBash를 이용했었다. 그런데 내가 원하는 파일 외에도 업데이트 되거나, 뭔가 충돌되는 경우가 많아서 해결방법을 알아보았다. 생각보다 단순했던 환경변수 설정하기 ㅎㅎ 이제 편하게 vsCode 내에서 git code를 입력할 수 있다.

Development/Error 2023.02.02

[error] -TypeError: Cannot read properties of undefined (reading 'pathname')

-TypeError: Cannot read properties of undefined (reading 'pathname') -react-dom.development.js:18687 The above error occurred in the component: 대충 이런 에러가 나왔다. npm install react-router-dom도 했는데 왜 발생하나 했는데,, 원인 : import {BrowserRouter as Route, Router, Routes} from 'react-router-dom'; 해결 >> import {BrowserRouter as Router, Routes, Route } from 'react-router-dom'; route를 router내 routes보다 앞에 작성해서.....

Development/Error 2023.01.24

[react] 2.프론트엔드 만들기

server폴더의 루트폴더에 client(fileName) 폴더를 만든다. #터미널 열고 명령어 입력 npx create-react-app fileName //프론트엔드 파일 폴더이름 # fileName 폴더 내에서 패키지 설치 # tailwind를 사용할 것이기 때문에 설치 및 파일 생성하기-리액트 라우터 설치 npm install react-router-dom // client 폴더 내로 이동하여 설치 -테일윈드 설치 npm install -D tailwindcss postcss autoprefixer -테일윈드 config파일 생성 npx tailwindcss init -p # config.js >> 컴포넌트 경로 입력 변경전 : content:[] 변경 후 : content:[ "./src/**/..

Development 2023.01.23
728x90