I built the complete Home automation system from scratch. It was for my "Advanced Topic in Programming Language 3" course. I used NodeJs and socket programming. In client site Python was used to connect the Pi with server. The whole project followed MVC framework!
- Raspberry Pi 3 Model B
- Mysql server
- NodeJs server
- NodeJs
- NodeJs TCP socket
- Mysql server
- Bootstrap 4
- Jquery
Used Python 3.5 to connect the Pi device with the server.
Use the db.sql file to setup the mysql database. Make sure you have 1337 and 8000 port open. Then simply put all the file in one directory and run the app.js script using node app.js command.
Use "npm install" command to get install all the dependencies of the project.
That's all. Everything should work properly!