예시)
# "project-root" 폴더 생성 및 이동
mkdir -p project-root && cd project-root
# backend 폴더와 그 하위 폴더/파일 생성
mkdir -p backend/{app,tests}
touch backend/app/{__init__.py,models.py,routes.py,schemas.py,services.py,utils.py}
touch backend/tests/{__init__.py,test_auth.py,test_business_card.py,test_mbti.py}
touch backend/{main.py,config.py,requirements.txt}
# frontend 폴더와 그 하위 폴더/파일 생성
mkdir -p frontend/{public,src/{assets,components,pages}}
touch frontend/public/index.html
touch frontend/src/components/{BusinessCardDesigner.js,MBTITest.js,Login.js,Register.js,Navbar.js}
touch frontend/src/pages/{Home.js,Dashboard.js,Profile.js}
touch frontend/src/{App.js,index.js,styles.css}
touch frontend/{package.json,webpack.config.js}
# docker-compose.yml 파일 생성
touch docker-compose.yml
echo "Project structure created successfully."
'IT기타' 카테고리의 다른 글
PDF 파일 합쳐서 한 파일로 만들기(python) (0) | 2024.08.27 |
---|---|
md 파일 pdf로 변환 (python) (0) | 2024.08.27 |
소스 코드를 수정한 후 Docker에서 변경 사항을 반영 (0) | 2024.08.17 |
github gist 로 md(mermaid) 파일 실행 (0) | 2024.08.15 |
[error] [auth] No access to GitHub Copilot found. You are currently logged in as ~~ (0) | 2024.08.13 |