Application for managing gps Trackers
docker-compose up --build
docker-compose up
Then head over to localhost:8080
First of all install the dependencies on the node_servers folder :
Go to ./node_servers/website and the ./node_servers/database_server and run npm install, in order to have the necessary node_modules
npm install
It gets the dependencies from the package.json file. The dependencies are listed in the dependencies section and are added there everytime we install a new dependency with npm install .
To create the database, run the following program:
python3 node_servers/database_server/model/python/database_managing.py
The python program database_managing.py file looks for the database file (database.sqlite) and if it doesn't it creates it . It builds the sql database from the file dbdesigner.sql .
If there are no errors the database is created successfully .
Run the following command in both folders node_servers/database_server and node_servers/website
npm run startWebsite
In the path : ./python_servers/src
python -m venv app_venv
source app_venv/bin/activate
To disable it after running the programms :
deactivate
The following application will take data from our mqtt subscriber and forward them to the context provider and the database
python src/connector_app.py
This application acts as virtual sensors in order to provide a live demo
python src/publisher_app.py
This application will connect to the specified mqtt broker and forward the data it receives to the connector app
python src/subscriber_app.py