All Projects → ehaut → syhthems-platform

ehaut / syhthems-platform

Licence: MIT License
syhthems platform 是一个开源的IoT(物联网)平台。可以实现物联网产品的创建和管理、数据流的管理、终端设备的管理以及设备数据的图表形态查看。

Programming Languages

java
68154 projects - #9 most used programming language
Vue
7211 projects
javascript
184084 projects - #8 most used programming language
TSQL
950 projects
FreeMarker
481 projects
HTML
75241 projects

Projects that are alternatives of or similar to syhthems-platform

spring-security-jwt-csrf
A demonstration of stateless JWT authentication with Spring Security, Spring Boot and Vue js
Stars: ✭ 62 (-49.18%)
Mutual labels:  spring-security
vuetask
A Progressive Task Management Application Offline First
Stars: ✭ 15 (-87.7%)
Mutual labels:  vuetify
vuetify-admin
一个vuetify后台基础模板
Stars: ✭ 46 (-62.3%)
Mutual labels:  vuetify
WindowsIoTEverywhere
Images & drivers to get WIndows 10 IoT running on off-the-shelf tablets, mini-pcs, and various computers.
Stars: ✭ 23 (-81.15%)
Mutual labels:  iot-platform
SSM Maneger DEMO
⚡️基于 SSM的后台管理系统DEMO 使用SpringMVC+Spring+Mybatis以及maven的后台管理系统. 程序的结构分为表现层(Controller)、业务层(Service)、数据层(Dao),包括权限授权、分页查询、日志记录,订单及产品查询,授权管理等功能
Stars: ✭ 41 (-66.39%)
Mutual labels:  spring-security
blog3.0
博客V3.0 目前使用的技术(Nuxtjs + Nestjs + Vue + Element ui + vuetify),存储(MongoDB + Redis + COS)
Stars: ✭ 37 (-69.67%)
Mutual labels:  vuetify
meteor-vuetify
Experimenting with using Vuetify on a Meteor project.
Stars: ✭ 18 (-85.25%)
Mutual labels:  vuetify
StressThing
a software testing platform to perform stress test on web of things
Stars: ✭ 12 (-90.16%)
Mutual labels:  iot-platform
thinkimf
thinkimf 一个基于PHP7的创新互联网框架,驱动物联网,智联网,职业规划 hinkIMF ,PHP IOT FRAMEWORK
Stars: ✭ 29 (-76.23%)
Mutual labels:  iot-platform
KotlinPrimavera
Spring support libraries for Kotlin
Stars: ✭ 83 (-31.97%)
Mutual labels:  spring-security
nymea
The nymea IoT server repository.
Stars: ✭ 89 (-27.05%)
Mutual labels:  iot-platform
Eldin-Space-Vue
Personal Web Portfolio
Stars: ✭ 54 (-55.74%)
Mutual labels:  vuetify
awrora-starter
Landing page template built with one of most popular javascript library Vue.JS, Vuetify (Material Design) and Nuxt.JS with SSR.
Stars: ✭ 38 (-68.85%)
Mutual labels:  vuetify
nuxt-handson
Nuxt.js Hands-On
Stars: ✭ 24 (-80.33%)
Mutual labels:  vuetify
blog-frontend
Frontend of blog created using: GraphQL (Apollo) + Vue + Nuxt.js + TypeScript + Vuetify...
Stars: ✭ 43 (-64.75%)
Mutual labels:  vuetify
imgalign
Webapplication for image stitching and aligning
Stars: ✭ 162 (+32.79%)
Mutual labels:  vuetify
opa-spring-security
Open Policy Agent for Spring Security
Stars: ✭ 19 (-84.43%)
Mutual labels:  spring-security
spring-security-mybatis-demo
A simple demo for Spring Security with Mybatis .
Stars: ✭ 48 (-60.66%)
Mutual labels:  spring-security
kotori
A flexible data historian based on InfluxDB, Grafana, MQTT and more. Free, open, simple.
Stars: ✭ 73 (-40.16%)
Mutual labels:  iot-platform
IoT-Technical-Guide
🐝 IoT Technical Guide --- 从零搭建高性能物联网平台及物联网解决方案和Thingsboard源码分析 ✨ ✨ ✨ (IoT Platform, SaaS, MQTT, CoAP, HTTP, Modbus, OPC, WebSocket, 物模型,Protobuf, PostgreSQL, MongoDB, Spring Security, OAuth2, RuleEngine, Kafka, Docker)
Stars: ✭ 2,565 (+2002.46%)
Mutual labels:  iot-platform

syhthems IoT Platform

syhthems 是一个开源的物联网平台项目,它可以实现物联网产品的管理,数据流的管理,设备的管理,设备数据的可视化查看等等这些基础的物联网平台功能,以及多用户和角色的权限管理,OAuth2 登录等功能。该项目目前用于本人学习 Spring Boot, Spring Security, Vue 以及 IoT,希望能和社区开发者共同学习和进步。

文档:http://syhthems.ehaut.cn/

微服务架构改造 目前正在进行 syhthems 微服务架构改造,详细进度可查看 project:syhthems Platform 2.0 , 分支为 cloud

平台架构

syhthems IoT Platform 采用分模块开发,首先分为前端和后端两个大部分,前端比较简单,就只有一个 syhthems-web 模块,后端是主要的部分,分为 syhthems-common 平台基础模块,syhthems-db 数据访问模块,syhthems-sso 单点登录模块,syhthems-web-api Web 后台 API 模块,syhthems-device终端设备接入模块。

syhthems系统架构

技术栈

后端

  • Java
  • Spring Boot
  • Spring Security
  • Spring OAuth2
  • SSM
  • MBG (Mybatis Generator)
  • 通用 Mapper
  • MySQL 数据库
  • Redis 缓存

前端

  • Node
  • npm
  • VueJS
  • Vuetify
  • Vuex
  • Vue Router

终端设备

  • NodeMCU Develop Kit v1.0
  • SHT20
  • Arduino

平台功能

  • 终端设备能够从传感器读取感知到的原始数据信息。
  • 终端设备能够将读取到的原始数据转化为正确的温湿度数据。
  • 终端设备能够通过 WiFi 芯片连接后台系统。
  • 终端设备能够将数据使用 HTTP 协议传送到后台系统。
  • 后台系统能够实现用户的登录和注册。
  • 后台系统能够实现多客户端的 OAuth2(第二代开放授权标准) SSO (Single sign-on,单点登录)以及 JWT(JSON Web Tokens)功能和登出 功能。
  • 后台系统能够实现用户的授权管理。
  • 后台系统实现系统数据库表的增删查改功能。
  • 后台系统能够实现方法级别的权限管理功能。
  • 后台系统实现基本的 API 接口。
  • 后台系统能够实现用户产品的创建和删除功能。
  • 后台系统能够实现产品设备的管理功能。
  • 后台系统能够实现设备数据流模板的管理。
  • 后台系统能够接收终端设备发送过来的数据。
  • 后台系统能够将设备发送的数据存储在关系型数据库或者时间序列数据 库中。
  • 后台系统能够对数据进行分时间查询。
  • 前台能够实现单页面应用。
  • 前台能够实现 OAuth2 SSO,能够从后台 SSO 系统获得 token 以及实现 刷新令牌的功能。
  • 前台能够实现页面的自适应布局。
  • 前台能够实现导航菜单的动态获取和展示。
  • 前台能够通过 AJAX(Asynchronous JavaScript and XML,异步的 JavaScript 与 XML 技术)向后台 API 发送请求。
  • 前台能够实现部分数据的全局共享。
  • 前台使用 Material Design(材料设计)。
  • 前台能够实现用户的登出功能。
  • 前台能够实时校验用户的登陆状态。
  • 前台能够实现产品的创建和删除,并将数据发送给后台系统。
  • 前台能够实现产品下设备的创建和删除,并将数据发送给后台系统。
  • 前台能够实现对数据流模板的创建和删除。
  • 前台系统能够查看某个设备下的数据,并可以以图表的样式展示。
  • 前台系统能够实现基本的错误处理。

平台预览

首页

黑色主题

产品列表

添加产品

产品删除

产品详情

数据流模板管理

添加数据流

修改数据流

设备管理

添加设备

设备详情

设备数据流对应的数据点展示

数据点折线图

快速使用

开发及运行环境

  • Java 8 或者 Java 11
  • Maven
  • NodeJS
  • npm
  • VueJS
  • MySQL 5.7
  • Redis

后台

  1. 从 github 上克隆最新的代码

     git clone https://github.com/ehaut/syhthems-platform.git
     # 在国内可以使用阿里云的代码托管服务来下载:
     git clone https://code.aliyun.com/syhthems/syhthems-platform.git
  2. 创建平台所使用的数据库

     create schema if not exists syhthems default character set utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci;
    
     create user syhthems@'localhost' identified by 'syhthems';
     create user syhthems@'%' identified by 'syhthems';
    
     GRANT ALL PRIVILEGES ON syhthems.* TO syhthems@'localhost';
     GRANT ALL PRIVILEGES ON syhthems.* TO syhthems@'%';
    
     flush privileges;
    
     use syhthems
  3. 导入数据库表结构

    数据库所有的表结构都导出到平台代码下的"syhthems-db/src/main/resources/script/表结构.sql"中,该导出数据只有表结构,并没有任何数据。在该目录下还有一个"毕设系统数据.sql",该导出数据包含表结构和示例数据,其中有两个用户以及一个完整的系统Demo数据。以上这两个导出数据可以选择一个使用 MySQL 的 GUI 工具或者 mysql 命令导入。作为快速开始,这里推荐导入"毕设系统数据.sql"

  4. 运行平台后台

    syhthems 平台采用分模块设计,其中 sso 模块,web-api 模块以及 device 模块是以 web 的形式运行,需要单独运行这三个模块,可以使用 IDE 打开该项目后手动运行这三个模块的 Main 方法,也可以使用 jar 包的方式运行。下面的命令是以 jar 包的形式运行这三个模块。

     cd syhthems-platform
     mvn clean install -Dmaven.test.skip=true -T 4
     # 运行 sso 模块
     java -jar syhthems-sso/target/syhthems-sso-0.0.1-SNAPSHOT.jar
     # 如果是 Java 11 需要加上额外的参数来允许非法的反射访问(下同)
     java -jar syhthems-sso/target/syhthems-sso-0.0.1-SNAPSHOT.jar --illegal-access=permit
     # 运行 web-api 模块
     java -jar syhthems-web-api/target/syhthems-web-api-0.0.1-SNAPSHOT.jar
     # 运行 device 模块
     java -jar syhthems-device/target/syhthems-device-0.0.1-SNAPSHOT.jar

前台

前台的运行需要先使用 npm 安装依赖后再运行,命令如下。前台运行后默认的端口为 9090, 直接进入首页即可。若使用"毕设系统数据.sql"数据,则有两个用户,syhthems 用户和 sunriseydy 用户,密码都为 syhthems ,该密码也是系统所有用户的默认密码。

cd syhthems-web
npm install
npm run serve

TODO

  • 系统数据库的增删查改操作
  • 适配时序数据库 influxDB v2.0 版本
  • 跟进 Vuetify v2.0 版本
  • 实现数据流和和设备的绑定等操作
  • 实现用户角色的管理和角色的权限管理
  • 适配多种终端设备通信协议
  • 实现多种数据点查看样式
  • 平台文档编写
  • 代码清洗

LICENSE

MIT License

Copyright (c) 2019 SunriseYDY

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].