This is a RESTful API built with Laravel for managing user wallets and transactions. The API allows users to perform various actions such as creating wallets, funding wallets using Paystack, and viewing transaction history.
The Laravel Wallet API provides endpoints to perform the following tasks:
- User registration and authentication using JWT
- Assign currencies to wallets
- Wallet management (create, view, fund, and debit)
- Paystack integration for funding wallets
- Transaction history for wallets
To run this project locally, follow these steps:
-
Clone the Repository
git clone https://github.com/Tope19/wallet_api.git cd wallet_api
-
Install Dependencies
composer install
-
Copy Environment File
cp .env.example .env
-
Generate JWT Secret and Update the JWT_SECRET variable in your .env file:
php artisan jwt:secret
-
Obtain your Paystack API keys (PAYSTACK_PUBLIC_KEY and PAYSTACK_SECRET_KEY) and update the corresponding variables in your .env file.
-
Run Migrations
php artisan migrate
-
Run the Database Seeder
php artisan db:seed
-
Start the Development Server
php artisan serve
Explore the API endpoints using Postman by importing the provided collection:
After completing the setup instructions, your Laravel application should be up and running.