Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```


맨 μœ„λ‘œ