A mobile friendly web application for tracking personal expenses built with PHP and styled with Tailwind CSS. This application uses a MySQL database hosted on Aiven.io.
- PHP 7.4 or higher
- Web server with PHP support (Apache, Nginx, etc.)
- MySQL database (hosted on Aiven.io or elsewhere)
- Git (for cloning the repository)
- Clone the repository:
git clone https://github.com/gpolic/expenses_php_tailwind.git
-
Navigate to the project directory:
-
Configure your database connection (see Database Configuration section below).
-
Deploy to your web server or run locally
-
In case there are many categories setup in the DB, shorten your default category list by updating 'app_record.php' for $defaultCategories with your prefered category IDs
This application uses Aiven.io for MySQL database hosting. To configure your database connection:
-
Create a MySQL database service on Aiven.io
-
From your Aiven console, obtain the following credentials:
- Database host/endpoint
- Database name
- Username
- Password
- Port (usually 3306)
- Download the SSL certificate (ca.pem) from the Overview page of your service
-
Create a
config.php
file in the root directory with the indicated structure -
Create your user directly on the database with SQL command "INSERT into users values (1,'username','password_hash')". The password hash can be found with "$hashedPassword = password_hash('your_password', PASSWORD_DEFAULT);"