A finance management system which is integrated with OPPWA to create a checkout, payments and issue refunds. This Repository is ysing docker to allow use of Laravel & MySql
For the GUI, please use the following Repository: https://github.com/jcsix694/afms-vuejs
- PHP v7.3.33
- Composer v2.1.3
- Install prerequisites
- Pull down Repository
- Run
$ composer install - Run
npm install - Copy
/.env.exampleand rename to.env - Update DB details in
.envto match your local setup - Update OPPWA_API_URL, OPPWA_API_ENTITY_ID and OPPWA_API_ACCESS_TOKEN with the credentials in the
.env - Run
alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail'to allow to boot up usingsail - Run
sail up -dto start the project - Run migrations (See Running Migrations)
- Run
sail artisan migrate:statusto check the migrations to run - Run
sail artisan migrateto run the migrations
- Run
sail downto stop the project - Run
sail psto check containers that are running
- AFMS API: 80
- MySQL: 3366
- Redis: 6379
- POST api/auth
- Authorizes a loging and returns a Bearer Token for the user
- POST api/users
- Creates a customer
- GET api/users/me
- Returns data a user using an active Bearer Token
- POST api/checkouts
- Creates a checkout within OPPWA for a user with an active Bearer Token
- GET api/checkouts
- Returns all the checkouts with any payments and refunds for a user with an active Bearer Token
- GET api/checkouts/{id}
- Returns a single checkout by checkout id with any payments and refunds for a user with an active Bearer Token
- POST api/payments/refund
- Creates a refund for a payment for a user with an active Bearer Token