chmod +x ./install_linux.sh
./install_linux.sh
install_windows.bat
Yes, sure! You can download the source code and adjust the tool for your needs. In this case you need to know at least the basics of HTML, CSS, Javascript and PHP. I also use Docker for virtualization of the server and for the database. It is required for the role concept.
The frontend app is a typical react app with no routes or any addons. All used special modules will be installed automatically via the package.json file. The app has the following structure:
app/assetscss/app.css (used for the custom css in the app) - Bootstrap.css (user for the standard app's grid) - js - components (Now, there are only two basic components: layout and ticker. Layout is a "design" for the main construct grid. Ticker is a JS function for the ticker including it's source.)
config (Config.js is a default config for the app in case the source is not available. Currently, I do not use it.)
app.js (This is the main slider logic of the app. All main JS functions can be found in this file.)
index.js (This is an standard entrypoint for a typical react app. Nothing special.)
The backend application is a typical php symfony app without any special addons. The backend app needs a database to work, so there is a special MySQL docker container in the docker-compose.yml The app uses twig templates as an html engine.
The most backend functions are written in php. The frontend app uses only GET and POST requests via fetch() for getting fresh updates from config.json, data_ticker.json and data.json. Where:
The concept is pretty simple: Backend generates some config files in json format according to the php functions.
The source for the frontend app can switched any time in app/assets/app.js or app/assets/components/ticker/MoveTicker.js