Skip to content

RoiEf/IoT_Boiler_CTL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project logo

Hybrid Front End control BoilerPlate for ESP32 IoT applicatons

📝 Table of Contents

🧐 About

The Aim of this project is to create a usefull BoilerPlate code for ESP32 IoT applications.

This project takes on a Hybrid approach where the Front End control of things will be a SPA (Single Page Application) written in Java-Script so on the Server IoT side of things there will obly be a need to create a API endpoint.

This reposotory contain ONLY the Front end SPA control.

It is created using Preact & Microbundle.

The "IoT" side of things is at:

A Mockup API to run and test this code against is at: IoT_Base_MockAPI

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and deployment purposes.

Prerequisites

This project was built using VS-Code. The project is written in Java-Script and require Node.JS & NPM to be installed.
Working on windows I also use Git-SCM Given the nature of the project, I'm not going to go over how to setup your local machine.

Installing

In order to get the project, just do a Git: checkout to this repository.
Then run npm install to automaticaly install all project dependencies such as Preact and Microbundle from github.com and you are good to go.

It is recomended also to Install the Mockup API for this project. It can be found at: IoT_Base_MockAPI

🎈 Usage

For Running this code localy:

Open two terminal windows.
In the first give the command npm run build_dev
In the second give the command npm run serve

🚀 Deployment

Making changes to the code

The code in this repository is Split into three main directories.
The src directory contain all the Java-Script code.
The build_dev directory contain html and CSS files. After a seccessfull build*dev it will also contain .js and .map files. This is the derectory from the live server will serve the content for development perposes.
The build directory is very much the same as the build_dev. only building the project files there will generate a smaller more compact version of the built files in order to save memory space on the IoT device.

ToDo:

In the readme file - Write the deployment section
Fix the "npm run dev" script.

Releases

No releases published

Packages

No packages published