# 테스트를 위한 간편 환경 설정

# 개요
개발과 테스트에 필요한 간단한 설정을 합니다.
# 무료 온라인 서비스를 사용
## 1. **[replit](http://replit.com/)** 사이트
> * 회원가입
> * Repl을 두개 생성 합니다.
>   * python 리플
>   * flask 리플

### 1.1. 리플 생성
* 리플 사이트 에서 로그인
* Create Repl을 클릭합니다.
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/6AGPf4rakljNmXbG-image-1704687871721-click-on-create-repl.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/6AGPf4rakljNmXbG-image-1704687871721-click-on-create-repl.png)
* Flask Templates을 선택합니다.
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/IDiUanWHE2NvBxrE-image-1704686839161-choose-flask-templates.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/IDiUanWHE2NvBxrE-image-1704686839161-choose-flask-templates.png)
* 원하는 제목을 입력합니다.
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/P8trdoaJPP0MCoMa-image-1704686893468-enter-the-title-you-want.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/P8trdoaJPP0MCoMa-image-1704686893468-enter-the-title-you-want.png)
* 실행을 클릭하면, 웹뷰 창에서 메시지를 확인한 후 확인을 클릭합니다.
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/l33MHGG99nEEPFVl-image-1704687909806-click-run-check-message-in-webview-window-and-click-stop.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/l33MHGG99nEEPFVl-image-1704687909806-click-run-check-message-in-webview-window-and-click-stop.png)
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/1qoNpnJ9OQat0J3y-image-1704686910964-click-run-check-message-in-webview-window-and-click-stop2.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/1qoNpnJ9OQat0J3y-image-1704686910964-click-run-check-message-in-webview-window-and-click-stop2.png)
* 표시된 곳을 클릭하고 Create 버튼을 클릭합니다.
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/s61WWV12SZR23QNp-image-1704686921778-click-on-highlight-and-new-create.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/s61WWV12SZR23QNp-image-1704686921778-click-on-highlight-and-new-create.png)
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/LgqKqUI0PoU8Mfln-image-1704686928370-click-on-highlight-and-new-create2.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/LgqKqUI0PoU8Mfln-image-1704686928370-click-on-highlight-and-new-create2.png)
* Python Templates을 선택한 후 원하는 제목을 입력하고 Create Repl 버튼을 클릭합니다.
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/QX5eFT7XqqPNmSyG-image-1704686937305-choose-python-templates-enter-the-title-you-want-and-create.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/QX5eFT7XqqPNmSyG-image-1704686937305-choose-python-templates-enter-the-title-you-want-and-create.png)
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/YzIfxZ5Tsltg81q8-image-1704686945700-choose-python-templates-enter-the-title-you-want-and-create2.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/YzIfxZ5Tsltg81q8-image-1704686945700-choose-python-templates-enter-the-title-you-want-and-create2.png)
---


## 2. **[swit.io](http://swit.io/)** 사이트
> * Free/Standard 플랜으로 로그인 합니다.
>   * 실습용 워크스페이스를 하나 생성 합니다.
>   * **[초대링크 클릭](https://invite.swit.io/share_link/0563692212aff907f89f33d097ed9a84)** 하여 가입합니다.

### 2.1. Swit Standard Workspace 생성 및 하나 더 가입하기
* swit.io 접속 후 Free/Standard 선택
* Google 로그인
* Workspace 생성
* 초대 링크로 추가 가입 하기 **[(링크)](https://invite.swit.io/share_link/0563692212aff907f89f33d097ed9a84)**
---

## 3. **[Swit Developers](http://developers.swit.io/)** 사이트
> * Free/Standard 플랜으로 로그인 된 상태에서 실습용 앱을 하나 생성합니다.
> * 권한(scope)을 두개 설정 합니다.
>   * app:install
>   * message:write
> * callback url
>   * http://127.0.0.1:5000/callback
> * 반드시 앱을 활성화 (Active) 합니다.

### 3.1. 해당 워크스페이스에 App 한개 생성하기
* **[Swit Developers](http://developers.swit.io/)** 사이트로 이동
* Swit apps 선택
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/cixHDp360Q33rqwQ-image-1704686992137-swit-apps.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/cixHDp360Q33rqwQ-image-1704686992137-swit-apps.png)
* New app 선택  
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/EKFzqmrVI8CMTX68-image-1704687001510-new-app.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/EKFzqmrVI8CMTX68-image-1704687001510-new-app.png)
* App name 작성 및 생성해놓은 워크스페이스 선택 후 Create
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/cYzX2zLspMTVTk7B-image-1704687008033-app-name-create.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/cYzX2zLspMTVTk7B-image-1704687008033-app-name-create.png)
* 만든 App 선택  
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/VxrDJxEuyTOfXXsK-image-1704687019617-app.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/VxrDJxEuyTOfXXsK-image-1704687019617-app.png)
* Authentication 메뉴에서 Allowed redirect URLs 에 http://127.0.0.1:5000/callback 기입 후 Add
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/V3hiAHTEPSfFyWZX-image-1704687028446-authentication-allowed.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/V3hiAHTEPSfFyWZX-image-1704687028446-authentication-allowed.png)
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/gUUlgy1GhtPf5aCw-image-1704687036816-authentication-allowed-2.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/gUUlgy1GhtPf5aCw-image-1704687036816-authentication-allowed-2.png)
* Scopes 메뉴에서 Add scopes 선택
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/D9cKwIN3RZJKWYIL-image-1704687057667-scopes-add-scopes.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/D9cKwIN3RZJKWYIL-image-1704687057667-scopes-add-scopes.png)
* app:install 과 message:write 선택 후 Update
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/5D0rHvhF4zAWOAnd-image-1704687062904-install-write-update.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/5D0rHvhF4zAWOAnd-image-1704687062904-install-write-update.png)
* Status settings 메뉴에서 Activate 클릭
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/qbq67O0dlFnDpZYJ-image-1704688001210-status-settings-activate.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/qbq67O0dlFnDpZYJ-image-1704688001210-status-settings-activate.png)
[![](https://tech-support.swit.io/uploads/images/gallery/2024-01/scaled-1680-/9A1Wqjy35Va84NRZ-image-1704687072457-status-settings-activate-2.png)](https://tech-support.swit.io/uploads/images/gallery/2024-01/9A1Wqjy35Va84NRZ-image-1704687072457-status-settings-activate-2.png)
---
<text style="font-size:120%">초기 설정을 완료하였습니다.   
다음으로 Swit OpenAPI를 사용해 채팅을 보내는 예제를 해보도록 하겠습니다.</text>