Introducing Microservice Playwright !!
Microservice Playwright is space to learn with Playwright.
Contents
Table of Contents
| No | Title | Remarks |
|---|---|---|
| 0 | 환경설정 | Playwright환경셋팅 |
| 1 | 커리큘럼 | 커리큘럼 |
| 2 | 설계 | 실습 |
Get Started(Playwright)
1. 기본 환경 bun 설치
- Web 서버 구축을 위한 Node.js 설치
- Node.js 다운로드
Playwright로 프로젝트 만들기
- vscode에서 npm : 이 시스템에서 스크립트를 실행할 수 없으므로
- Windows에 bun 설치하기
- bun에서 workspace 사용
- [CRA 대신에 Vite로 React 프로젝트 시작하기]
$ powershell -c "irm bun.sh/install.ps1|iex"
$ bun create vite [프로젝트명]
$ cd [프로젝트명]
$ bun install
$ bun dev
# 기타 의존성 추가하기
$ bun add axios
# 기타 의존성 제거하기
$ bun remove axios
# [devDependencies에 추가하려면, 다른 패키지 관리자 툴과 동일하게 --dev 옵션을 사용](https://bluemiv.tistory.com/112).
$ bun add --dev prettier
$ bun create vite
2. vitest 설치
$ bun add -D vitest @testing-library/react @testing-library/user-event @testing-library/jest-dom happy-dom
# playwright 설치
$ bun add playwright@latest → binary만 설치됨
$ npm init playwright@latest
3. Playwright 설치
npx playwright test
Runs the end-to-end tests.
npx playwright test --ui
Starts the interactive UI mode.
npx playwright test --project=chromium
Runs the tests only on Desktop Chrome.
npx playwright test example
Runs the tests in a specific file.
npx playwright test --debug
Runs the tests in debug mode.
npx playwright codegen
Auto generate tests with Codegen.
- next auth 설치
$ yarn add next-auth
- Serverless Architecture
- Supabase 드리프트
- Supabase
- Firebase
- Serverless 배포플랫폼
- Headless CMS Ghost
- Supabase vs Ghost
- Nextjs Sample
- Opencvjs
- Nextjs oauth
- Nextjs typescript sample
- Nextjs 동작방식
- Nextjs 상태관리
- Nextjs Atomic Design
- Lighthouse
- NextAuth
- Nextjs 개요
- withAuth
Data & Source
Table of Data & Source
| No | Title | Educational Institution | Source | Remarks |
|---|---|---|---|---|
| 1 | mio | 개인개발 | mio | Playwright |
Playwright로 프로젝트 만들기
1. Playwright App 설치하기
$ yarn create next-app [프로젝트 명] --typescript
2. eslint, prettier 라이브러리 설치(vscode extension 설치와 settings.json 설정은 필수)
- 특정한 폴더로 이동하여 create-Playwright-app 명령어를 이용하여 spa라는 폴더를 만들어 보도록 하겠습니다.
$ npm i -D eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks
$ npm i -D prettier eslint-config-prettier eslint-plugin-prettier
$ npm i -D babel-eslint eslint-plugin-babel
$ npm i -D @typescript-eslint/eslint-plugin @typescript-eslint/parser
# or
$ yarn add eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks
$ yarn add prettier eslint-config-prettier eslint-plugin-prettier
$ yarn add babel-eslint eslint-plugin-babel
$ yarn add @typescript-eslint/eslint-plugin @typescript-eslint/parser
$ yarn add --dev @next/eslint-plugin-next
3. 서버 가동하기
- yarn으로 가동 가능, 만약 yarn이 설치 안되어 있으면…
$ yarn dev
$ yarn build
$ yarn start
4. Material UI
$ yarn add @material-ui/core
5. Semantic UI
$ yarn add semantic-ui-react semantic-ui-css
6. axios
$ yarn add axios
Reference
- 블로그
- Playwright - 반응형 web
- Redux vs Mobx : Playwright에서 Mobx 경험기 (Redux와 비교기)
- Playwright 프로젝트에 TypeScript를 적용
- Playwright
- store api분리
- 동적라우팅
- 동적라우팅1
- https://colinch4.github.io/2021-06-07/mobx/
- https://velog.io/@seunghwa17/Playwright-Typescript-%EC%97%90-Styled-component-%EC%A0%81%EC%9A%A9
- https://www.w3schools.io/learn/nextjs-custom-404-error/
- https://www.howdy-mj.me/boilerplate/next-ts-mobx-sc-sb/
- 안경잡이개발자