A simple RESTful API for managing a simple bill payments system, having just the USERS and TRANSACTIONS table.
- PHP 8.1
- Laravel 10.x
- Composer
- Apache Server
- MySQL
The steps below will guide you to run the project on your local machine. These commands can be run using Powershell (for Windows OS), or Terminal (for Unix).
-
Clone the repository:
git clone https://github.com/edokaDev/easybill.git cd easybill -
Install the dependencies:
composer install
-
Copy the example environment file
cp .env.example .env
-
Update .env file Set the following variables in the .env file.
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=easybill DB_USERNAME=your_db_username DB_PASSWORD=your_db_password
-
Generate the application key:
php artisan key:generate
-
Run the database migrations:
php artisan migrate
-
Seed Database (Optional)
php artisan db:seed
-
Start the development server:
php artisan serve
To run test, run the command below.
php artisan testThe data model is available at the link below.
https://dbdiagram.io/d/easyBill-66967d308b4bb5230e7cc48cThe Postman document is available at the link below.
https://documenter.getpostman.com/view/20514107/2sA3kRJ48h