Skip to content

quantanhoi/Portfolio_website_with_MQTT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a simple portfolio website using aws server as a host for http requests handling.

  • This Aws server then will send a mqtt message to the home server to get the data from postgresql database *In this case, skill, project and contact list are all loaded into the postgre database *As a result for using hiveMQ as a broker for data pulling, home server can be run anywhere on any machine without having to configuring ip address or routing
  • awsServer which is used to handle http requests is a simple ec2 free tier instance which can be access through public ipv4
  • Message is in format of protocol buffer

Set up Postgresql database on a home server using query.sql

Run home server:

python3 homeServer.py

Install Apache Web Server on EC2:

sudo apt-get update
sudo apt-get install apache2 -y
sudo systemctl start apache2
sudo systemctl enable apache2

Compile proto message file:

protoc --python_out=. message.proto

Run aws server on an EC2 Instance:

python3 awsServer.py

Home Server (Laptop/ homeServer.py) <-----> AWS Server (awsServer.py) <------> Client (Web)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published