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 a project for Cloud Search
- Create a client ID for the sample.
- 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.
- Use the origin
- Edit
public/config.json
- Replace
[client-id]
with the client ID you created. - Replace
[domain]
with your G Suite primary domain name (if using SSO)
- Replace
- Run the command to install dependencies:
npm install
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.