A nio-powered UI.
-
From niolabs
- niolabs ui-kit for components and styles
- niolabs pubkeeper for publishing and subscribing to topics
-
Third party software (click to review each library's licensing)
- ReactJS site scaffold
- react-router for navigation
- webpack 4 module bundling and development webserver
If you’re at all familiar with React, this simple example covers most of what you need to know to get started.
Follow these steps to run the UI using a local dev webserver.
-
In your terminal, clone the project, enter the directory, and install dependencies.
git clone https://github.com/niolabs/demo_ra_ui.git my-project cd my-project npm i -s
-
In the root of the project, rename
config.js.example
toconfig.js
and update the variables with your Pubkeeper details. -
Start the project.
npm start
-
Visit the project at https://0.0.0.0:3000.
- The development web server uses a self-signed certificate, and you may see a warning about the site being insecure. In your local development environment, it is safe to click "Advanced" > "proceed to site anyway."
-
Clone the repo to your local machine
git clone https://github.com/niolabs/demo_ra_ui.git
-
Enter the project directory
cd demo_ra_ui
-
Build the container from the command line at the root of the project
npm run build-docker
-
Update the
docker/docker-compose.yml
file with your Pubkeeper details -
Run the container
npm run run-docker
-
Visit the site at http://localhost:3000