### Install Python Requirements (Windows Alternative) - PowerShell Source: https://github.com/dotnet/eshopsupport/blob/main/README.md This is an alternative command for Windows environments to install Python packages using the `py -m pip` syntax. It serves the same purpose as the standard `pip install` command. ```PowerShell py -m pip install -r src/PythonInference/requirements.txt ``` -------------------------------- ### Install .NET Aspire Workload and Restore Dependencies - PowerShell Source: https://github.com/dotnet/eshopsupport/blob/main/README.md This snippet installs the necessary .NET Aspire workload using the dotnet CLI and restores project dependencies specified in the solution file. It requires the .NET 8 SDK to be installed. ```PowerShell dotnet workload update dotnet workload install aspire dotnet restore eShopSupport.sln ``` -------------------------------- ### Run eShopSupport AppHost Project - PowerShell Source: https://github.com/dotnet/eshopsupport/blob/main/README.md This command uses the dotnet CLI to run the AppHost project, which is the entry point for the .NET Aspire solution. It starts all the configured services and the Aspire dashboard. ```PowerShell dotnet run --project src/AppHost ``` -------------------------------- ### Install Python Requirements - PowerShell Source: https://github.com/dotnet/eshopsupport/blob/main/README.md This command uses pip to install all Python packages listed in the `requirements.txt` file located in the `src/PythonInference` directory. This is necessary for the Python inference project used in the solution. ```PowerShell pip install -r src/PythonInference/requirements.txt ``` -------------------------------- ### Installing Bootstrap Sass with NuGet (NuGet) Source: https://github.com/dotnet/eshopsupport/blob/main/src/IdentityServer/wwwroot/lib/bootstrap/README.md Installs the Bootstrap Sass package using the NuGet package manager, providing the source Sass files for customization. ```NuGet Install-Package bootstrap.sass ``` -------------------------------- ### Installing Docs Node Dependencies with npm (npm) Source: https://github.com/dotnet/eshopsupport/blob/main/src/IdentityServer/wwwroot/lib/bootstrap/README.md Installs the Node.js dependencies required for documentation build processes and local serving, using the npm package manager. ```npm npm install ``` -------------------------------- ### Installing Docs Dependencies with Bundler (Bundler) Source: https://github.com/dotnet/eshopsupport/blob/main/src/IdentityServer/wwwroot/lib/bootstrap/README.md Installs the Ruby gem dependencies, including the Jekyll site builder, required to build and run the Bootstrap documentation locally using Bundler. ```Bundler bundle install ``` -------------------------------- ### Installing Bootstrap with Composer (Composer) Source: https://github.com/dotnet/eshopsupport/blob/main/src/IdentityServer/wwwroot/lib/bootstrap/README.md Installs a specific version (4.5.3) of the Bootstrap package using the Composer dependency manager, typically used in PHP projects. ```Composer composer require twbs/bootstrap:4.5.3 ``` -------------------------------- ### Installing Bootstrap CSS with NuGet (NuGet) Source: https://github.com/dotnet/eshopsupport/blob/main/src/IdentityServer/wwwroot/lib/bootstrap/README.md Installs the Bootstrap package containing compiled CSS files using the NuGet package manager, commonly used in .NET development environments. ```NuGet Install-Package bootstrap ``` -------------------------------- ### Running Local Documentation Server (npm) Source: https://github.com/dotnet/eshopsupport/blob/main/src/IdentityServer/wwwroot/lib/bootstrap/README.md Starts a local development server to view the Bootstrap documentation in your browser, often including live reloading and asset compilation. ```npm npm start ``` -------------------------------- ### Installing Bootstrap with npm (npm) Source: https://github.com/dotnet/eshopsupport/blob/main/src/IdentityServer/wwwroot/lib/bootstrap/README.md Installs the latest version of the Bootstrap package and its dependencies into your project using the npm package manager, commonly used in Node.js environments. ```npm npm install bootstrap ``` -------------------------------- ### Installing jQuery using npm Source: https://github.com/dotnet/eshopsupport/blob/main/src/IdentityServer/wwwroot/lib/jquery/README.md This command shows how to install the jQuery package into a Node.js project using the npm package manager. This is the standard way to manage dependencies in a Node environment or for front-end projects using Node-based build tools. ```sh npm install jquery ``` -------------------------------- ### Installing Bootstrap with yarn (yarn) Source: https://github.com/dotnet/eshopsupport/blob/main/src/IdentityServer/wwwroot/lib/bootstrap/README.md Adds a specific version (4.5.3) of the Bootstrap package to your project using the yarn package manager, an alternative to npm for managing JavaScript dependencies. ```yarn yarn add bootstrap@4.5.3 ``` -------------------------------- ### Restoring .NET Tools (CMD) Source: https://github.com/dotnet/eshopsupport/blob/main/test/EvaluationTests/README.md Executes the `dotnet tool restore` command to ensure all required .NET global or local tools specified in the manifest file are installed and up-to-date before proceeding with other dotnet commands, such as generating a report. ```cmd dotnet tool restore ``` -------------------------------- ### Cloning Bootstrap Repository (Shell) Source: https://github.com/dotnet/eshopsupport/blob/main/src/IdentityServer/wwwroot/lib/bootstrap/README.md Clones the official Bootstrap GitHub repository to your local machine using the git command-line tool. This is one method for obtaining the source code or contributing. ```Shell git clone https://github.com/twbs/bootstrap.git ``` -------------------------------- ### Requiring jQuery using CommonJS (Bundlers) Source: https://github.com/dotnet/eshopsupport/blob/main/src/IdentityServer/wwwroot/lib/jquery/README.md This snippet illustrates how to include jQuery using the CommonJS `require` syntax, typical for environments like Node.js or when using bundlers such as Browserify or Webpack. This is a standard pattern for module loading in many modern JavaScript build workflows. ```js var $ = require( "jquery" ); ``` -------------------------------- ### Importing jQuery using ES Modules (Babel) Source: https://github.com/dotnet/eshopsupport/blob/main/src/IdentityServer/wwwroot/lib/jquery/README.md This snippet shows how to import jQuery using the ES6/ES2015 module syntax. This approach requires a transpiler like Babel to convert the code for browser compatibility or environments that do not natively support ES Modules. ```js import $ from "jquery"; ``` -------------------------------- ### Generating AI Evaluation Report (CMD) Source: https://github.com/dotnet/eshopsupport/blob/main/test/EvaluationTests/README.md Runs the `dotnet aieval report` command to process cached AI responses and generate an HTML report file. It requires specifying the path to the cache directory containing the evaluation results and the desired output file name for the report. ```cmd dotnet aieval report --path /path/to/your/cache --output ./report.html ``` -------------------------------- ### Including jQuery via CDN Script Tag in HTML Source: https://github.com/dotnet/eshopsupport/blob/main/src/IdentityServer/wwwroot/lib/jquery/README.md This snippet demonstrates the most straightforward way to include jQuery in a web page: using a script tag that references the library hosted on a Content Delivery Network (CDN). This method is common for simple projects or when direct file inclusion is not desired. ```html ``` -------------------------------- ### Including jQuery in Node.js with JSDOM Source: https://github.com/dotnet/eshopsupport/blob/main/src/IdentityServer/wwwroot/lib/jquery/README.md This snippet shows how to use jQuery in a Node.js environment by simulating a browser window and document using the jsdom library. This is often necessary because jQuery relies on a DOM structure and a window object, which are not native to Node.js. ```js const { JSDOM } = require( "jsdom" ); const { window } = new JSDOM( "" ); const $ = require( "jquery" )( window ); ``` -------------------------------- ### Defining jQuery Dependency using AMD Source: https://github.com/dotnet/eshopsupport/blob/main/src/IdentityServer/wwwroot/lib/jquery/README.md This snippet demonstrates how to define a module that depends on jQuery using the Asynchronous Module Definition (AMD) format, commonly used with loaders like RequireJS. It allows for asynchronous loading of dependencies in the browser. ```js define( [ "jquery" ], function( $ ) { } ); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.