2주정도 푹 쉬고 오늘 개강을 하였다. 데이터구조, 데이터베이스론, 오픈소스소프트웨어개발, 정보보호 과목을 듣게 되었다.
학교 공부도 열심히 하면서 노마드코더님의 무료영상을 보면서 사이드프로젝트를 진행해보려고한다.
npx create-react-app movie_app_2021
을 터미널에 입력해서 파일을 생성시켜주고 git init
을 입력해줬다. git remote add origin https://github.com/ByeongHunKim/movie_app_2021
을 해줬다. git add .
로 파일을 올려주고 git commit -m '#1.0 Creating Your first React App
을 해준 후 , git push origin master
로 푸쉬를 해줬다. 근데 md파일을 수정한걸 저장을 안해서 초기 값이 업로드 되어서 다시 시도했는데, ! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/ByeongHunKim/movie_app_2021'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
이런 오류가 떴지만 ,
git push origin +master
로 오류를 해결하였다. 그리고 다시 깃헙에 가서 리프레쉬를 해주니 저장한 값이 업로드 되었다.
hello!
라는 텍스트가 홈페이지에 렌더링되고 있을 때 검사를 해보면 비어있는데 이것이 react를 빠르게 한다. react는 소스코드에 처음부터 html을 넣지않고 html에서 html을 추가하거나 제거하는 법을 알고 있다. root
div에 넣는다.