2021-02-05 00:12:03 +00:00
# API example
2023-11-19 11:38:24 +00:00
2021-02-05 00:12:03 +00:00
This example demonstrates Tauri's API capabilities using the `@tauri-apps/api` package. It's used as the main validation app, serving as the testbed of our development process.
In the future, this app will be used on Tauri's integration tests.

## Running the example
2021-03-15 01:48:08 +00:00
2022-02-04 20:56:57 +00:00
- Compile Tauri
2023-11-19 11:38:24 +00:00
go to root of the Tauri repo and run:
2021-03-15 01:48:08 +00:00
```
2025-03-15 15:51:40 +00:00
pnpm i
pnpm build:debug
2022-02-04 20:56:57 +00:00
```
- Run the app in development mode (Run inside of this folder `examples/api/` )
2023-11-19 11:38:24 +00:00
2021-02-05 00:12:03 +00:00
```bash
2024-08-17 02:04:08 +00:00
$ pnpm tauri dev
2021-02-05 00:12:03 +00:00
```
2022-02-04 20:56:57 +00:00
- Build an run the release app (Run inside of this folder `examples/api/` )
2023-11-19 11:38:24 +00:00
2021-02-05 00:12:03 +00:00
```bash
2024-08-17 02:04:08 +00:00
$ pnpm tauri build
2025-05-18 18:43:49 +00:00
$ ../../target/release/api
2021-02-05 00:12:03 +00:00
```