How vimukthi101/scat works
Project type and purpose
• This is a multi-platform system that integrates several components: Android mobile applications (one focused on smart card transactions and another dedicated to GPS tracking), a series of PHP-based web applications and APIs (in the public, webApp, and mobile folders), and smart card firmware (using Arduino INO files for reading and writing smart cards).
• The system is designed to handle operations such as commuter login, balance and transfer management, travel transactions, reporting (via FusionCharts and Highcharts), SMS notifications, and location tracking of trains or commuters.
File structure
• Android Applications:
– There are two main Android projects:
• "SCAT" – which includes functionalities like Login, Account, Balance, Transfer, Travel, and Map activities, using getResponse() methods.
• "GPS" – which includes a Map and Settings to send location data (sendLocation()).
• Smart Card Device:
– The “SmartCard” directory contains Arduino sketches (Read.ino, Write.ino, etc.) which suggest the system has an embedded component for managing physical smart card operations.
• PHP-based Backends:
– The “mobile” folder features PHP APIs (e.g., disable.php, getTrainList.php, login.php, transfer.php, etc.).
– The “public” and “webApp” directories include a large number of PHP scripts (with controller sub-folders) which serve various user roles (commuter, station master, registrar, manager, etc.), handling user registration, reports, and other backend operations.
• Database:
– A “db” folder includes an SQL file (scat.sql) that likely defines the schema for the entire system.
• Supporting Services:
– The presence of SMS settings and SMTP settings (in ssi directories across multiple parts) indicates integration with external SMS gateways and email services.