nextjs 프로젝트 설정
⇒ repo는 소문자로만 가능 !!! ㅠ
npx create-next-app@latest .
npm 라이브러리 설치
npm i @tanstack/react-query
npm i @tanstack/react-query-devtools
npm install --save-dev sass
npm install axios
npm install recoil
경로 설정
eslint, prettier 설정
eslint 설정
Nextjs, Typescript 프로젝트에 Prettier + ESlint 설정하기
npm install -D prettier eslint-plugin-prettier eslint-config-prettier
npm i -D @typescript-eslint/parser @typescript-eslint/eslint-plugin
prettier 설정
npm install --save-dev @trivago/prettier-plugin-sort-imports
import order 설정
PR, 이슈 템플릿 설정
css 기본 설정
resetcss
⇒ https://meyerweb.com/eric/tools/css/reset/
next.js 환경변수 ⇒ 추후에 필요할 때
github action, CI/CD ⇒ 추후에 필요할 때
허스키, lint-stage
//.eslintrc.json
{
"ignorePatterns": ["next.config.js"] // 추가
}
sass option
최종 페이지 url)
페이지 | URL | Query Params |
---|---|---|
사이트 접속 | / | 접속 시, 로그인 여부에 따라 |
로그인o → /home |
||
로그인x → /login |
||
내 계획 페이지 | /home | ?year=2023 |
로그인 페이지 | /login | |
내 계획 작성 페이지 | /create | |
계획 상세 페이지 | /plans/{planId} | |
계획 상세 페이지 - 수정중 | /edit/{planId} | |
다른 계획 둘러보기 페이지 | /explore | ?year=present 올해 |
?year=previous 지난해 | ||
?sort=recent 최신순 | ||
?sort=popular 인기순 | ||
다른 계획 상세 페이지 | /plans/{planId} | |
마이 페이지 | /my |