Skip to content

Latest commit

 

History

History

widget

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Widget samples

Open in Cloud Shell

Google Cloud Search allows enterprises to index and search for information across a wide variety of data sources. These samples illustrate building a custom search interface using the search widget.

Set up the samples

  1. Set up a project for Cloud Search
  2. Create a client ID for the sample.
    1. Use the origin http://localhost:8080 when creating the client ID. If using Cloud Shell, enter the origin of the web preview URL (e.g. https://8000-dot-3711555-dot-devshell.appspot.com) generated by your Cloud Shell instance configured for port 8000.
  3. Edit public/config.json
    1. Replace [client-id] with the client ID you created.
    2. Replace [domain] with your G Suite primary domain name (if using SSO)
  4. Run the command to install dependencies:
    npm install

Run the sample

To start the server, run:

npm run start

Open the url http://localhost:8080 in your browser and try each of the samples. If using Cloud Shell, click the web preview button to open the application.