### Install dependencies and start the application Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsJS/meeting-recruitment-app/nodejs/Readme.md Navigate to the API and client application directories and install dependencies, then start both applications. ```bash npm install npm start ``` -------------------------------- ### Install Dependencies and Serve Project Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsJS/tab-channel-group/spfx/README.md Install project dependencies using npm and start the local development server using Gulp. ```bash npm install gulp serve ``` -------------------------------- ### Start the Node.js Client Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsJS/tab-support-offline/nodejs/README.md Navigate to the client directory and run the command to start the client application. This command installs dependencies and starts the client. ```bash npm run start ``` -------------------------------- ### Build and Run Server Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsJS/tab-channel-group-sso-quickstart/ts/README.md Build and run the server-side application. Navigate to the 'api-server' directory, install dependencies, and start the server. ```bash cd api-server npm install npm start ``` -------------------------------- ### Start the Node.js Server Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsJS/tab-support-offline/nodejs/README.md Navigate to the server directory and run the command to start the Node.js server. This command installs dependencies and starts the server using nodemon. ```bash npx nodemon index ``` -------------------------------- ### Start the client application Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsJS/tab-meeting-transcript-recording/csharp/README.md Navigate to the ClientApp directory and start the client-side application using npm. ```bash # npm install # npm start ``` -------------------------------- ### Install and Run Bot with uv Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsSDK/bot-ai-messages/python/bot-ai-messages/README.md Navigate to the sample directory and install dependencies using uv, then run the bot. ```bash uv sync uv run main.py ``` -------------------------------- ### Install and Run Bot with Pip Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsSDK/bot-ai-messages/python/bot-ai-messages/README.md Navigate to the sample directory and install dependencies using pip, then run the bot. ```bash cd python/bot-ai-messages pip install -e . python main.py ``` -------------------------------- ### Build and Run Client Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsJS/tab-channel-group-sso-quickstart/ts/README.md Build and run the client-side application. This involves installing dependencies, building the client, and starting the development server. ```bash npm install npm run build npm start ``` -------------------------------- ### Install and Run Bot with Pip Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsSDK/bot-cards/python/bot-cards/README.md Navigate to the bot directory and install dependencies using pip, then run the bot. ```bash cd python/bot-cards pip install -e . python main.py ``` -------------------------------- ### Set up Python Virtual Environment and Install Dependencies Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsJS/meetings-audio-state/python/README.md Create a virtual environment and install the required Python packages using pip. ```bash # Create virtual environment python -m venv venv # Activate virtual environment (Windows) venv\Scripts\activate # Or on macOS/Linux source venv/bin/activate # Install dependencies pip install -r requirements.txt ``` -------------------------------- ### Clone and Install Sample App Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsJS/tab-ui-templates/ts/README.md Clone the sample app repository and install its dependencies using yarn. ```bash git clone https://github.com/OfficeDev/Microsoft-Teams-Samples.git cd Microsoft-Teams-Samples/samples/TeamsJS/tab-ui-templates/ts yarn install ``` -------------------------------- ### Navigate to Sample Directory Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsSDK/bot-ai-messages/nodejs/bot-ai-messages/README.md Change to the bot's directory to begin setup. ```bash cd nodejs/bot-ai-messages ``` -------------------------------- ### Navigate to Sample Directory Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsSDK/bot-task-modules/nodejs/bot-task-modules/README.md Navigate to the sample directory before installing dependencies and running the bot. ```bash cd nodejs/bot-task-modules ``` -------------------------------- ### Install and Run Bot with Pip Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsSDK/bot-attachments/python/bot-attachments/README.md Use pip to install the bot's dependencies and then run the main Python script. The bot will start listening on http://localhost:3978. ```bash pip install -e . python main.py ``` -------------------------------- ### Navigate to Sample Directory Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsSDK/bot-auth-quickstart/nodejs/bot-auth-quickstart/README.md Change to the sample's directory before installing dependencies. ```bash cd nodejs/bot-auth-quickstart ``` -------------------------------- ### Clone the repository Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsJS/graph-rsc/csharp/README.md Clone the Microsoft Teams samples repository to get started with the project. ```bash git clone https://github.com/OfficeDev/microsoft-teams-samples.git ``` -------------------------------- ### Navigate to Bot Directory Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsSDK/bot-meetings/nodejs/bot-meetings/README.md Navigate to the bot's directory before installing dependencies or starting the bot. ```bash cd nodejs/bot-meetings ``` -------------------------------- ### Navigate to Sample Directory Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsSDK/bot-meetings/README.md Change to the appropriate directory for your chosen language sample before installing dependencies. ```bash # For Node.js: cd samples/TeamsSDK/bot-meetings/nodejs/bot-meetings # For .NET: cd samples/TeamsSDK/bot-meetings/dotnet/bot-meetings # For Python: cd samples/TeamsSDK/bot-meetings/python/bot-meetings ``` -------------------------------- ### Navigate to Sample Directory Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsSDK/bot-auth-quickstart/dotnet/bot-auth-quickstart/BotAuthQuickstart/README.md Change the current directory to the root of the bot-auth-quickstart sample. ```sh cd dotnet/bot-auth-quickstart ``` -------------------------------- ### Get Teams App ID Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsJS/tab-request-approval/python/views/UserNotification.html Retrieves the application ID for the 'Tab Request Approval' app from a list of installed apps. This is used to construct the deep link for notifications. ```javascript function getAppId(appList) { var list = appList.value; var i; for (i = 0; i < list.length; i++) { if (list[i].teamsApp['displayName'] == "Tab Request Approval") { return list[i].teamsApp['id']; } } } ``` -------------------------------- ### Get App Information from Teams Source: https://github.com/officedev/microsoft-teams-samples/blob/main/samples/TeamsJS/graph-app-installation-lifecycle/python/views/installedAppList.html Retrieves and displays detailed information about a specific installed app in a team. Shows app name, description, and version. Handles cases where app ID is missing or information is unavailable. ```javascript function getAppInfo(appId) { if (!appId) { document.getElementById('modalbody').innerHTML = "
"; showModal('getAppModal'); return; } document.getElementById('modalbody').innerHTML = ""; showModal('getAppModal'); microsoftTeams.app.getContext().then(context => { var teamId = context.team.groupId; fetch(`https://graph.microsoft.com/v1.0/teams/${teamId}/installedApps/${appId}?$expand=teamsAppDefinition`, { method: 'GET', headers: { 'Authorization': 'Bearer ' + token, 'Content-Type': 'application/json' } }) .then(response => { if (!response.ok) { throw new Error(`HTTP ${response.status}: ${response.statusText}`); } return response.json(); }) .then(data => { if (data && data.teamsAppDefinition) { var infoHtml = `