### Start nice-grpc Promise Examples Source: https://github.com/invest/invest-js/blob/main/examples/example/README.md Run this command to start the nice-grpc promise examples. ```bash npm run start-example-promise ``` -------------------------------- ### Start gRPC-JS Callback Examples Source: https://github.com/invest/invest-js/blob/main/examples/example/README.md Execute this command to start the gRPC-JS callback examples. ```bash npm run start ``` -------------------------------- ### Install Dependencies and Run Locally Source: https://github.com/invest/invest-js/blob/main/examples/grpc-web-example/README.md Install project dependencies and start the local development server. ```bash npm install npm run dev ``` -------------------------------- ### Install Modules Source: https://github.com/invest/invest-js/blob/main/examples/example/README.md Run this command to install the necessary modules for the project. ```bash npm install ``` -------------------------------- ### Install T-Tech Invest JS gRPC-web Source: https://github.com/invest/invest-js/blob/main/libs/grpc-web-client/README.md Install the library using npm. This command adds the package to your project's dependencies. ```bash npm install @tinkoff/invest-js-grpc-web --save ``` -------------------------------- ### Initialize and Use TTechApiClient Source: https://github.com/invest/invest-js/blob/main/libs/grpc-web-client/README.md Initialize the TTechApiClient with an investment token and optional metadata. This example demonstrates fetching shares, bonds, and ETFs asynchronously. ```typescript import { TTechApiClient } from '@tinkoff/invest-js-grpc-web' const client = new TTechApiClient({ token: 't.invest.secret-token', metadata : {'x-app-name':'node-ts-myapp'}}) async function allInstruments() { const shares = await client.instruments.shares({}) const bonds = await client.instruments.bonds({}) const etfs = await client.instruments.etfs({}) return {shares, bonds, etfs} } allInstruments() .catch(console.log) ``` -------------------------------- ### Create Vue 3 Vite Project Source: https://github.com/invest/invest-js/blob/main/examples/grpc-web-example/README.md Use npm to create a new Vue 3 TypeScript project with Vite. ```bash npm create vite@latest grpc-web-example -- --template vue-ts ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.