Recommend this page to a friend! |
Classes of mohammad anzawi | PHP Wallet API and Application | readme.md | Download |
|
DownloadWallet Appthis app created with * Laravel 8 * React <typescript> * tailwindCss pleas note :all files (Classes, methods) are documented well, so you can open any file and read comments if you want to know how things going. server directory -> Back-End (API)client directory -> Front-End (APP)run this app### Requriments: * composer * Node >=v14.18.1 <=v16.13.1 (v17.2.0 cause errors) * PHP v7.4.0+ * Database :
to run this app on your computer please follow steps,
first thing you want to do is (login as admin and create payment method) if you register as a user , you cant create any transactions if theres no payment methods.
how to setup your database
other configurationin /server/.env file
note:This version of the application does not specify the allowed currencies, due to time constraints only. the main idea its create table About the applicationwallet management system that has two types of users: admin and client. Admin section:
? Admin can create a new payment method that will be offered to the clients, the clients can
use the predefined payment methods to deposit or withdrawal to their wallet,
payment method interface includes the following:
Client section: ? Client can make any transaction (deposit or withdrawal), and wallet will be reflected after admins approval. ? The client can see the wallet balance and he can see the transactions he requested with the status.
when we have only 2 types of users (admin/user) I just make it simple, so I created very simple permission roles its column called (is_admin) in users table. I know its basic but it does the trick here |