-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Migrate to mkdocs-material #990 * Add /home/gitpod/.local/bin to PATH * Add Iot Hub Portal logo #990 Co-authored-by: Kevin BEAUGRAND <9513635+kbeaugrand@users.noreply.github.com>
- Loading branch information
1 parent
e513efe
commit bef66c1
Showing
38 changed files
with
242 additions
and
9,732 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Enforce Unix newlines | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Publish Documentation | ||
on: | ||
push: | ||
branches: [ docs/main ] | ||
workflow_dispatch: | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
- run: pip install -r requirements.txt | ||
- run: mkdocs gh-deploy --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
image: python:latest | ||
|
||
tasks: | ||
- name: Jekyll | ||
init: bundle install | ||
command: bundle exec jekyll serve | ||
- name: mkdocs-material | ||
init: pip install -r requirements.txt | ||
command: | | ||
export PATH="$PATH:/home/gitpod/.local/bin" | ||
mkdocs serve | ||
ports: | ||
- port: 4000 | ||
- port: 8000 | ||
onOpen: open-preview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,21 @@ | ||
[](https://gitpod.io/#https://github.com/CGI-FR/IoT-Hub-Portal/tree/docs/main) | ||
|
||
# IoT Hub Portal | ||
|
||
This project aims to provide a solution for handling IoT Devices easily. | ||
It relies on Azure IoT Hub for connectivity and device management. | ||
|
||
## Prerequisites | ||
|
||
The following should be completed before proceeding with the IoT Hub Portal development or deployment in your environment. | ||
|
||
* You must have an Azure subscription. Get an [Azure Free account](https://azure.microsoft.com/en-us/offers/ms-azr-0044p/) to get started. | ||
* You must have an Identity Provider supporting OpenId protocol. | ||
> If you don't have existing Identity Provider, you can follow our dedicated page to setup an Azure AD B2C Tenant with its applications. | ||
> See [Azure AD B2C applications configuration](./docs/b2c-applications.md) page. | ||
* Understand how IoTEdge LoraWAN StarterKit work. Have a look at [https://azure.github.io/iotedge-lorawan-starterkit](https://azure.github.io/iotedge-lorawan-starterkit) to get started. | ||
# IoT Hub Portal Documentation | ||
|
||
## Typical architecture deployment | ||
|
||
 | ||
|
||
## Step-By-Step instructions | ||
|
||
#### Deployed Azure Resources | ||
|
||
The template will deploy the following resources in your Azure subscription: | ||
|
||
* IoT Hub | ||
* Azure Function and Consumption Service Plan | ||
* Redis Cache | ||
* Application Insights | ||
* Log Analytics (when opted in to use Azure Monitor) | ||
* Azure WebApp and Service Plan | ||
[](https://gitpod.io/#https://github.com/CGI-FR/IoT-Hub-Portal/tree/docs/main) | ||
|
||
#### Instructions | ||
## Quick start | ||
|
||
1. Choose a solution prefix for your deployment. | ||
> The documentation of IoT Hub Portal is based on [https://squidfunk.github.io/mkdocs-material](mkdocs-material). | ||
1. Use the [Portal AD applications configuration](https://cgi-fr.github.io/IoT-Hub-Portal/docs/b2c-applications.html) page to configure your AD B2C Tenant. | ||
> You should save the following information: | ||
> * OpenID authority: `<your-openid-authority>` | ||
> * OpenID metadata URL: `<your-openid-provider-metadata-url>` | ||
> * Client ID: `<your-client-id>` | ||
> * API Client ID: `<your-client-id>` | ||
## Configure dev environment | ||
|
||
1. Press on the button below to start your Azure Deployment. | ||
To install mkdocs-material and required dependencies, you have to run the following command at the root of the project: | ||
|
||
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FCGI-FR%2FIoT-Hub-Portal%2Fmain%2Ftemplates%2Fazuredeploy.json/uiFormDefinitionUri/https%3A%2F%2Fraw.githubusercontent.com%2FCGI-FR%2FIoT-Hub-Portal%2Fmain%2Ftemplates%2FazuredeployUI.json) | ||
```console | ||
pip install -r requirements.txt | ||
``` | ||
|
||
2. You will get to a page asking you to fill the following fields: | ||
* **Resource Group**: A logical "folder" where all the template resource would be put into, just choose a meaningful name. | ||
* **Location**: In which data center the resources should be deployed. Make sure to choose a location where IoT Hub is available. | ||
* **Unique Solution Prefix**: A string that would be used as prefix for all the resources name to ensure their uniqueness. | ||
* **Open Id Authority**: The OpenID authority used by the portal. | ||
* **OpenId Metadata URL**: The OpenID metadata URL used by the portal. | ||
* **Client Id**: the ID of the web client that will be used to authenticate the portal. | ||
* **Api Client Id**: the ID of the API client that will be used to authenticate the portal. | ||
* **Edge gateway name**: the name of your LoRa Gateway node in the IoT Hub. | ||
* **Deploy Device**: Do you want demo end devices to be already provisioned (one using OTAA and one using ABP)? If yes set this to true, the code located in the Arduino folder would be ready to use immediately. | ||
* **Reset pin**: The reset pin of your gateway (the value should be 7 for the Seed Studio LoRaWan, 25 for the IC880A) | ||
* **Region**: In what region are you operating your device (currently only EU868 and US915 is supported) | ||
After the installation python dependencies, your can start a local review of documentation site by the following command at the root of the project: | ||
|
||
> see: [https://azure.github.io/iotedge-lorawan-starterkit/dev/quickstart/#deployed-azure-infrastructure](https://azure.github.io/iotedge-lorawan-starterkit/dev/quickstart/#deployed-azure-infrastructure) for more information about the LoRaWan IoT Hub and Azure deployment. | ||
```console | ||
mkdocs serve | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Credits | ||
|
||
* [Azure IoT Edge LoRaWAN Starter Kit](https://github.com/Azure/iotedge-lorawan-starterkit) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Known Issues and Limitations | ||
|
||
Refer to [Known Issues](https://github.com/CGI-FR/IoT-Hub-Portal/issues) for known issues, gotchas and limitations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
MIT License | ||
# MIT License | ||
|
||
Copyright (c) 2021 CGI France | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Support | ||
|
||
This is an open source solution. | ||
For bugs and issues with the codebase please log an issue in this repo. |
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.