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.exampleto.envfile on your root directory. -
Setup the database connection
-
Install
Composercomposer 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 serveThis command will run the application on
localhost:8000or127.0.0.1:8000on 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 --seedor run the root-shell
./vendor/bin/sail root-shellThen,
php artisan key:generate php artisan migrate:fresh --seedThe application already runs on
localhoston 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 testor
./vendor/bin/pest -
😎