To get started with the IoT Application Kit and the AWS IoT SiteWise source, see Getting Started.
To learn more about IoT Application Kit components, sources, and the core API see docs.
- Environment setup
Ensure you have node version 16 and the latest version of yarn installed.
To do this, execute the following commands:
# Install `n`, a node package manager, globally to help switch between node versions.
npm i n -g
# Update to node version 16
sudo n 16
# Install the latest version of yarn
npm i yarn@latest -g
# Optionally, install lerna
npm i lerna -g
- Build project
# Without installing lerna locally...
npx lerna bootstrap
# With lerna installed locally
lerna bootstrap
- Provide credentials
Copy a set of AWS JSON formatted credentials to the account with the access to the SiteWise resources you are requesting, at
<rootDir>/packages/components/creds.json
.
These credentials should not be uploaded to the repository.
- Point to valid SiteWise resources
Alter the file siteWiseQueries
within @iot-app-kit/components
to point to valid SiteWise asset properties for the accounts credentials from the prior step.
- Test locally
run
yarn run start
at the project root, and then viewlocalhost:3333
. Here you should see example IoT App Kit components requesting data from SiteWise.
The IoT Application Kit mono-repo containing the following packages:
@iot-app-kit/core
is the core library which exposes the iot-app-kit framework, and is what iot-app-kit components are built upon.
@iot-app-kit/components
is a collection of web components which are connected to iot-app-kit.
@iot-app-kit/react-components
exposes the core iot-app-kit web components as React components.
@iot-app-kit/source-iotsitewise
exposes the AWS IoT SiteWise source, which enables you to visualize and interact with your AWS IoT SiteWise data and assets.
@iot-app-kit/related-table
is a tree view table component built over @awsui/components-react
components providing client-side filtering, sorting and pagination with highly performant and optimistic rendering.
See CONTRIBUTING for more information.
This project is licensed under the Apache-2.0 License.