Skip to content

Commit

Permalink
RSDK-4658 - add viam client (#161)
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Hehr <[email protected]>
  • Loading branch information
purplenicole730 and HipsterBrown authored Sep 20, 2023
1 parent 75be5d2 commit e4b5d70
Show file tree
Hide file tree
Showing 14 changed files with 1,124 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ update-buf: $(node_modules)
.PHONY: build-buf
build-buf: $(node_modules) clean-buf
$(buf) generate buf.build/googleapis/googleapis
$(buf) generate buf.build/viamrobotics/api --path common,component,robot,service
$(buf) generate buf.build/viamrobotics/api --path common,component,robot,service,app
$(buf) generate buf.build/erdaniels/gostream
$(buf) generate buf.build/viamrobotics/goutils

Expand Down
24 changes: 24 additions & 0 deletions examples/connect-app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
9 changes: 9 additions & 0 deletions examples/connect-app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Viam SDK Quickstart

This example demonstrates how to connect to the Viam app and make calls to it.

## Usage

Run `npm run dev` and visit `localhost:5137` in a browser. Press the button to execute the logic defined in `src/main.ts`.

Edit `src/main.ts` to change the logic being run. Edit `index.html` to change the layout of the app.
18 changes: 18 additions & 0 deletions examples/connect-app/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>
<body>
<div id="main">
<button id="main-button" disabled=true>
Click for data
</button>
<pre id="text"></pre>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

0 comments on commit e4b5d70

Please sign in to comment.