This is the backend API to:
-
Purchase Airtime and data
- MTN
- Airtel
- Glo
- 9Mobile
-
Renew your CableTv Subscription
- DSTV
- GoTV
- Startimes
-
Pay your electricity bills
We collect Payment with Paystack
This project was developed using the Laravel 10.x PHP framework.
-
Clone this repository
-
Copy the
.env.example
to.env
file on your root directory. -
Setup the database connection
-
Install
Composer
composer install
-
Generate the application key
php artisan key:generate
-
Migrate and seed the database
php artisan migrate:fresh --seed
-
To run the project
php artisan serve
This command will run the application on
localhost:8000
or127.0.0.1:8000
on your browser
-
Initialize the project
docker run --rm \ -u "$(id -u):$(id -g)" \ -v "$(pwd):/var/www/html" \ -w /var/www/html \ laravelsail/php83-composer:latest \ composer install --ignore-platform-reqs
-
To run the following docker containers
- Laravel 10 (localhost)
- MySQL 8.0
- PHPMyAdmin (localhost:8080)
- Mailhog (localhost:8025)
./vendor/bin/sail up -d
-
Then run the following commands
./vendor/bin/sail artisan key:generate ./vendor/bin/sail artisan migrate:fresh --seed
or run the root-shell
./vendor/bin/sail root-shell
Then,
php artisan key:generate php artisan migrate:fresh --seed
The application already runs on
localhost
on the browser. -
To bring down the containers
./vendor/bin/sail down
This application has been documented using Postman Here.
-
To run the test, simply
php artisan test
or
./vendor/bin/pest
-
😎