Skip to content

A project to house automation using #GraphQL #Relay #Koa #React #PubNub #JohnnyFive #Arduino #ESP8266

Notifications You must be signed in to change notification settings

lucasebling/house-automation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript House Automation

How it works


Architecture

Demo


Real Time

It uses graphql subscriptions to keep IO state synced between all clients


Real Time

How to run (development)

Infrastructure (Kafka, Zookeeper, MongoDB)

  • Run docker-compose up -d to start the infrastructure

Remote Server

  • Run cd remote-server to enter the local server folder
  • Run yarn to install dependencies
  • Run yarn dev to start the server

Create first user

  • Run yarn repl to start the repl
  • Inside repl, run User.create({ username: "USERNAME", password: "PASSWORD", isAdmin: true, name: "NAME"})

Local Server

  • Run cd local-server to enter the local server folder
  • Run yarn to install dependencies
  • Run cp .env.sample .env to create the environment file, and fill any missing values
  • Run yarn dev to start the server

Remote Server

  • Run cd remote-server to enter the local server folder
  • Run yarn to install dependencies
  • Run cp .env.sample .env to create the environment file, and fill any missing values
  • Run yarn dev to start the server

Client

  • Run cd client to enter the local server folder
  • Run yarn to install dependencies
  • Run cp .env.sample .env to create the environment file, and fill any missing values
  • Run yarn dev to start the server

About

A project to house automation using #GraphQL #Relay #Koa #React #PubNub #JohnnyFive #Arduino #ESP8266

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 74.0%
  • C++ 22.0%
  • JavaScript 2.5%
  • HTML 1.5%