Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

omnia-network/omnia_lighting_app

Repository files navigation

omnia_lighting_app

This is a simple demo Application showcasing how to make use of the Omnia Network to discover light devices in environments and control them. It's designed for the Internet Computer and makes use of its HTTPS Outcalls to query devices and send commands to them. For this reason, some knowledge of the Internet Computer is required to understand the code and how it works.

Running the project locally

If you want to test your project locally, first you have to create a .env file in the root directory of the project. Follow the .env.example file to see which variables you have to set. Then you can run the following commands:

# Starts the replica, running in the background
dfx start --background

# Deploys your canisters to the replica and generates your candid interface
npm run deploy

If you want to deploy only the backend canister, you can run:

npm run deploy:backend

Note on frontend

It was bootstrapped with Vite.js and uses React as a framework. For UI components it uses Chakra UI.

License

Licensed under the MIT License.

About

A sample app interacting with Omnia Network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published