Skip to content
SON BLOG
Go back

Tauri - 크로스 플랫폼 앱 개발 프레임워크

Edit page

개요

Tauri는 데스크톱 애플리케이션을 구축하기 위한 현대적인 프레임워크입니다.


![img_1.png](img_1.png)

주요 장점

개발자 관점에서의 장점

고려사항

설치 및 설정 가이드

1. Rust 설치

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

2. Next.js 프로젝트 생성

npx create-next-app@latest --use-npm

3. tsconfig.json 또는 jsconfig.json 설정

{
  "exclude": [
    "node_modules",
    "src-tauri"
  ]
}

4. next.config.js 설정

/** @type {import('next').NextConfig} */
const nextConfig = {
  output: 'export',
}

module.exports = nextConfig

5. Tauri 관련 패키지 설치

npm install --save-dev @tauri-apps/cli@">1.0.0"
npm install @tauri-apps/api@1

6. package.json 스크립트 추가

{
  "scripts": {
    "tauri": "tauri"
  }
}

7. Tauri 초기화

npm run tauri init

8. main.rs 설정

#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

fn main() {
    tauri::Builder::default()
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}


build하면 설치 프로그램도 자동으로 생성된다.

img_2.png

어플리케이션을 실행하면 이렇게뜬다.

img_4.png

향후 발전 방향

추가 정보


Edit page
Share this post:

Previous Post
RxDB 란 무엇인가? (OpenSearch 연동)
Next Post
OJT 리팩토링과 Kotaemon RAG 구현기