This repository contains three different applications, three in one but every commit involves a single feature of an application.
/rt
contains real time server in Socket.io to manage real time data visualization/backend
constains API system written in PHP on my last library penny./frontend
contains a single file that help you to visualize data, I use bootstrap and jquery.
Into the project root I wrote a Makefile to manage primary tasks.
make socket_build
This command builds the socket server, it downloads depenendcies and build them.
make socket_start
It starts socket server on port 9090
make backend_build
It prepares backend, downloads dependencies...
make backend_test
it run tests. It written in PHPUnit.
make backend_start
It runs backend server on port 8080
If in 300s you call this api more of 10 times the system returns status code 429 (Rate Limit), you can unlock this status with http://api-server:8080/reset?userId=134256
make frontend_start
It run frontend server on port 8085
Copy /frontend/js/config.js.dist
into /frontend/js/config.js
and you replace default configurations with correct token