Skip to content

gpolic/expenses_php_tailwind

Repository files navigation

Expenses PHP Tailwind

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.

Prerequisites

  • 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)

Installation

  1. Clone the repository:

git clone https://github.com/gpolic/expenses_php_tailwind.git

  1. Navigate to the project directory:

  2. Configure your database connection (see Database Configuration section below).

  3. Deploy to your web server or run locally

  4. 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

Database Configuration

This application uses Aiven.io for MySQL database hosting. To configure your database connection:

  1. Create a MySQL database service on Aiven.io

  2. 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
  3. Create a config.php file in the root directory with the indicated structure

  4. 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);"

About

Expense tracker UI on PHP / Tailwind

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages