Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chan9yu/quiz_app
𧩠Quiz App with react
https://github.com/chan9yu/quiz_app
cypress e2e-test github-actions github-pages jest react react-testing-library redux redux-saga storybook styled-components typescript vite vitest yarn
Last synced: about 2 months ago
JSON representation
𧩠Quiz App with react
- Host: GitHub
- URL: https://github.com/chan9yu/quiz_app
- Owner: chan9yu
- Created: 2023-10-31T11:43:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-07T14:55:11.000Z (about 1 year ago)
- Last Synced: 2023-11-08T13:25:40.257Z (about 1 year ago)
- Topics: cypress, e2e-test, github-actions, github-pages, jest, react, react-testing-library, redux, redux-saga, storybook, styled-components, typescript, vite, vitest, yarn
- Language: TypeScript
- Homepage: https://chan9yu.github.io/quiz_app/
- Size: 13.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 𧩠Quiz App
> Quiz App with react
## πΌοΈ Thumbnail
## π Link
- Quiz APP
- Story Book## π§ Tech Stack
-
-
-
-
-
-
-
-
-
-
-
-
-## β¨ Features
- [x] μ¬μ©μλ `ν΄μ¦ νκΈ°` λ²νΌμ ν΄λ¦νμ¬ ν΄μ¦ νκΈ°λ₯Ό μμν μ μλ€.
- [x] μ¬μ©μλ λ¬Ένμ λν λ΅μμ `4κ° λ³΄κΈ° μ€μ μ ν`ν μ μλ€.
- [x] μ¬μ©μλ λ΅μμ μ ννλ©΄ λ€μ λ¬Ένμ λ³Ό μ μλ€.
- [x] λ΅μ μ ν ν `λ€μ λ¬Έν` λ²νΌμ λ³Ό μ μλ€.
- [x] λ΅μμ΄ λ§μλμ§ νλ Έλμ§ λ°λ‘ μ μ μλ€.
- [x] λ€μ λ¬Έν λ²νΌμ ν΄λ¦νμ¬ λ€μ λ¬ΈνμΌλ‘ μ΄λν μ μλ€.
- [x] λͺ¨λ λ¬Ένμ λ€ νλ©΄ μ¬μ©μλ λ€μκ³Ό κ°μ κ²°κ³Ό μ 보λ₯Ό λ³Ό μ μλ€.
- [x] ν΄μ¦λ₯Ό λ§μΉ λκΉμ§ μμλ μκ°
- [x] μ λ΅ κ°μ
- [x] μ€λ΅ μ
- [x] μ μ€λ΅μ λν λΉμ¨μ μ°¨νΈλ‘ νκΈ°
- [x] μ€λ΅ λ ΈνΈ κΈ°λ₯## π§ͺ Test
```shell
# Unit Test
yarn test# E2E Test
yarn cypress open
```### Unit Test
- `jest`κ³Ό `RTL(React-Testing-Library)` λμ `vitest` μ¬μ©
- μ»΄ν¬λνΈκ° μλμ μΌλ‘ λμμ μ νλμ§ λ λλ§μ λ¬Έμ μλμ§ νμΈνκΈ° μν΄ λ¨μ ν μ€νΈ μ§ν
- κ³΅ν΅ μ νΈ ν¨μλ€μ΄ κ²°ν¨μ΄ μλμ§ νμΈνκΈ° μν΄ λ¨μ ν μ€νΈ μ§ν> vitest μ΅μνμ λ Έλ ₯μΌλ‘ vite κΈ°λ° νλ‘μ νΈμ ν΅ν©λλ©°, λ§€μ° λΉ λ₯Έ μ₯μ μ΄ μκΈ°λλ¬Έμ μ¬μ©νκ² λμμ΅λλ€.
> vitestλ jestμμ μ¬μ©λλ λλΆλΆμ apiλ₯Ό μ§μν©λλ€.[vitest docs](https://vitest.dev/)
### E2E Test
- κΈ°λ₯ μꡬμ¬νμ΄ λ¬Έμ μμ΄ κ°λ°λμλμ§ νμΈνκΈ° μν E2E ν μ€νΈ μ§ν
- cypressλ₯Ό ν΅ν΄ ν μ€νΈ μ§ν## πΎ BackEnd API
ν΄μ¦μ λν μ 보λ₯Ό μ»κΈ°μν΄ open API μ¬μ©
- [opentdb.com](https://opentdb.com/api_config.php)
## π Getting Started
λ‘컬νκ²½μμ μ±μ μ€ννλ λ°©λ²μ λλ€.
### Prerequisites
ν΄λΉ μ±μ μ€νμν€κΈ° μν νμ 쑰건 μ λλ€.
1. yarn install
```shell
# yarn μ€μΉ
npm -g install yarn
```2. node setup
```shell
# .nvmrc κΈ°μ€ node version μ€μΉ
# nvmμ μ¬μ©νμ§ μλλ€λ©΄ μλμΌλ‘ λ Έλλ²μ μ λ§μΆ°μ£ΌμΈμ.
nvm use
```### Installation
1. νλ‘μ νΈ ν΄λ‘
```shell
git clone https://github.com/chan9yu/quiz_app
```2. νλ‘μ νΈ λλ ν λ¦¬λ‘ μ΄λ
```shell
cd quiz_app
```3. μ’ μμ± μ€μΉ
```shell
yarn install
```4. κ°λ° μλ² μμ
```
yarn dev
```