Skip to content

mariadelfers/control-of-energy-consumption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Control of Energy Consumption

Web project developed by Tec de Monterrey students to control the electricity consumption of your electrical devices in your home or office.

Start 🚀

These instructions will allow you to get a working copy of the project on your local machine for development and testing purposes.

Pre-requirements

Install mariaDB

$ pip pip install mariadb
Python environment

Install flask

$ pip install Flask

Install flask cors

$ pip install -U flask-cors

Install Mysql connector

$ pip install mysql-connector-python
NodeJS Environment

Install React

> npm install --save react

Install Storybook

> npx -p @storybook/cli sb init

Add dependecies

> npm install @storybook/react --save-dev
> npm install react react-dom --save
> npm install babel-loader @babel/core --save-dev
> npm install react-bootstrap bootstrap

Add storybook packages

> npm i -D @storybook/addon-actions
> yarn add @storybook/addon-knobs --dev

Automation Tests

yarn add --dev @storybook/addon-storyshots react-test-renderer

To store data

yarn add react-redux redux\

Add React Router library

npm install react-router-dom --save

Install Material UI

> npm install @material-ui/icons

Installation 🔧

A series of step-by-step examples that tells you what to run to get a running development environment

Create the database within the MariaDB environment

> mysql -u username -p < IotDB.sql

Start interface

> npm start

If you have problems with the versions

> npm i -S core-js@2.5.7

Built with 🛠️

Design tools

Autores ✒️