shldhee / auth-vue3-ts

0 stars 0 forks source link

auth-vue3-ts

프로젝트 실행 방법


$ npm ci or $ npm install

$ npm run serve

주 사용 라이브러리와 사용 의도

vue3

pinia

프로젝트 폴더 구조와 설계 의도

--src
----assets : 에셋 모음(이미지, 스타일 등)
----components : 컴포넌트 파일
----router : 라우터 관리(프로젝트 페이지 구성)
----services : API 통신, LocalStorage 관련
----store : 상태 관리(pinia 관련)
----utils : 유틸 함수 관리
----views : 페이지 관리(라우터 관련)

컴포넌트 구조와 설계 의도

-- components
---- BasicButton.vue - 글로벌 버튼 컴포넌트
---- BasicInput.vue - 글로벌 인풋 컴포넌트
---- Counter.vue - 인증 코드 타이머 컴포넌트
---- UserCard.vue - 회원 정보 카드 컴포넌트

(상태 관리를 사용한 경우) 상태 관리의 구조와 설계 의도

-- store ---- auth.ts - state, actions, getters로 구성되어 있다. (getters는 사용하지 않고 있다.)

- No more nested structuring of modules. You can still nest stores implicitly by importing and using a store inside another but Pinia offers a flat structuring by design while still enabling ways of cross composition among stores. You can even have circular dependencies of stores.

- No namespaced modules. Given the flat architecture of stores, "namespacing" stores is inherent to how they are defined and you could say all stores are namespaced.

(테스트를 작성한 경우) 테스트 시나리오 작성 의도와 목적

-

리뷰어에게 강조하고 싶은 부분 또는 그 외 기타 내용