보이니?
-
본인 깃허브로
fork -
fork한 repository clone(복제하기) : 프로젝트가 운영될 폴더하나 생성하고git bash나 터미널에서 해당 폴더 밑에서 명령어작업이든 머든 해야함
명령어 :
git clone https://github.com/자기이름/ECST.gitgraph 그리기 위한 설치
npm install react-chartjs-2 chart.js
달력 그리기
npm install react-datepicker date-fns
npm install —save-dev @types/react-datepicker
frontend 필요한 모듈 설치
cd frontend
npm install vite
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
npm install react-icons --save
npm install daisyui-
react는 frontend들어가서 작업
-
서버 실행 방법
a. cd to backend
b. python manage.py runserver 이게 서버 돌리는 코드
a. cd to frontend
b. npm run dev 이게 클라이언트 돌리는 코드
-
commit 방법 ****정말 중요
- 기본 순서는 pull > confict 해결 > push
fork한 레포랑fork를 떠온 레포를 먼저 똑같이 만들어주어야 함- 그 후에 pull하고 ~~ push
- pull request를 기존 레포지토리에 요청
- 기존 레포지토리가 수락하면 코드가 적용됨
-
사실 이희원도 겁나 헷갈려서 맨날 날려먹으니까 찾아보기..
[pr 정상적으로 처리하는 방법] https://uhgenie7.github.io/docs/dev/git/sync-repository
[commit message 형식] https://velog.io/@palza4dev/TIL-28.-GitGithub-%EC%BB%A4%EB%B0%8B-%EB%A9%94%EC%8B%9C%EC%A7%80-%EC%9E%91%EC%84%B1%EB%B2%95
참고문서 https://tailwindcss.com/docs/guides/vite
npm crate vite@latest your-project-name -- --template react
cd yourt-project-namenpm install -D tailwindcss postcss autoprefixernpx tailwindcss init -ptailwind.config.cjs 파일의 content에 경로를 추가한다.
"./index.html",
"./ser/**/*.{js,ts,jsx,tsx}",./src/index.css파일에 상태 추가
@tailwind base;
@tailwind components;
@tailwind utilities;공식 문서 https://react-icons.github.io/react-icons/
npm install react-icons --saveimport { FaBeer } from "react-icons/fa";
class Question extends React.Component {
render() {
return (
<h3>
{" "}
Lets go for a <FaBeer />?{" "}
</h3>
);
}
}npm install @react-icons/all-files --savenpm i daisyuiQUICK SETUP:
-
Install and activate virtual environment In the root folder, on the terminal create a virtual environment. Terminal command: python -m venv [name of the environment (usually env)] Activate command: source env/Scripts/activate
-
Creating and setting up Django Project a) Install django and all the main libraries : a. pip install django b. pip install djangorestframework django-cors-headers
b) Create project in terminal: django-admin startproject backend c) Cd to the backend folder d) Create an app in django in the terminal a. python manage.py startapp [name of the app]
-
Create a react app using vite Go back to the root folder and: a) npm create vite@latest frontend -- --template react b) cd frontend c) npm install
-
Open VS code and the run the servers a) In the root folder open VS code: a. code . b) Open two terminals and make sure your virtual environment is active