A sample RESTful API that allows Paystack users carry out money transfers as well as list and search through their transfer history.
- MySQL database
- Redis server
- Apache web server
- PHP 7.2.5 or higher
- Create a new MySQL database called "krass"
- Create a new user MySQL user with username = "krass" and password = "krass"
- Grant the new MySQL user ("krass") full privileges to the "krass" database
- Open a new terminal window in a folder of your choice
- From the terminal, run the command
git clone https://github.com/kheme/krass.git
- Enter the the "krass" folder and make a copy of the
.env.example
with the commandcp .env.example .env
- Open the
.env
file in an editor of your choice, and set yourREDIS_PASSWORD
andPAYSTACK_SECRET_KEY
- From the terminal window, run the following commands:
composer update
to install dependenciesphp artisan migrate
to migrate database tablesphp artisan passport:install
to install Lumen Passportphp artisan passport:keys
to generate Lumen Passport keys- Finally
php -S localhost:8000 -t ./public
to start the built-in development server
Documentation for this API is available on Postman via https://documenter.getpostman.com/view/8339368/T1LLFoLr
Paystack's API documentation is publicly available via https://paystack.com/docs/api/