AGE COMES WITH A PRICE: A Purchase-Tracking System Database for Senior Citizens
- XAMPP
- Arduino IDE
- Composer
- Python
- Any IDE for Python (e.g. VS code)
-
Download as ZIP or clone the Project.
-
Launch Composer setup executable and reference the php.exe usually in
C:\xampp\php\php.exe. -
Unzip the downloaded project and move it inside the
C:/xampp/htdocsdirectory.Make sure the moved folder has all the files inside like
index.php. (not just another age-comes folder, as it will not work) -
Open XAMPP and click
Configbutton in Apache module thenApache (httdp.conf). -
Scroll down to find
DocumentRoot "C:/xampp/htdocs"and<Directory "C:/xampp/htdocs">. -
Modify it to reflect
DocumentRoot "C:/xampp/htdocs/age-comes"and<Directory "C:/xampp/htdocs/age-comes">respectively and save it. -
Now in XAMPP landing page, click
Configbutton in Apache module again thenPHP (php.ini). -
Scroll down to find
;extension=gdand simple remove;leaving you withextension=gd. Then save it. -
Start the Apache and MySQL module in XAMPP.
-
Open the command line and enter:
pip install asyncio websockets serial requests
Skip to step 6 if the arduino is already flashed.
- Open the Arduino IDE and plug in the electronics, namely, the Barcode Reader module and the Arduino Uno R3.
- Through the Arduino IDE, open the file which is located in the project folder
age-comes > embedded > barcode_reader > barcode_reader.ino. - Select the select arduino port/board in the dropdown.
- Upload the code to the arduino via the
Uploadbutton. - Open any IDE like VScode and open the
age-comesfolder located in theC:/xampp/htdocsdirectory. - Select the python script inside the
embeddedfolder named:websocket_server.py. Run the python script. - While the python script is running, go to your browser and type in
localhost. The website should show up. - Try registering to the website and try to see if everything works, including the barcode reader.