An Wallet APP Restful API using Laravel API Resource (Laravel Version 5.7, PHP version 7.2).
- Setting up the environment.
- Creating Model, Seed, Migration for Accounts, Transaction, Expense_cat and Income_cat.
- Creating API Resource Controller : List,Show,Store,Update,Delete.
- Setup migration to create tables.
- Database seeding with seeder.
- Creating one-many relationship.
- Postman Colletion JSON file are provided.
- Clone or download this repository to your local machine
- You can change .env for connect database
- Run following command
composer install
php artisan migrate
php artisan db:seed
php artisan serve
- Open Postman to testing API
- Accounts
View all account : http://localhost:8000/api/accounts (GET)
View detail,Edit,Delete account : http://localhost:8000/api/accounts/{id} (GET)(PATCH)(DELETE)
Insert data : http://localhost:8000/api/accounts/create (POST) - Transaction
View all transaction : http://localhost:8000/api/transactions (GET)
View detail,Edit,Delete transaction : http://localhost:8000/api/transactions/{id} (GET)(PATCH)(DELETE)
Insert data : http://localhost:8000/api/transactions/create (POST) - Expense cat
View all expense_cat : http://localhost:8000/api/expensecat (GET)
View detail,Edit,Delete expense_cat : http://localhost:8000/api/expensecat/{id} (GET)(PATCH)(DELETE)
Insert data : http://localhost:8000/api/expensecat/create (POST) - Income cat
View all income_cat : http://localhost:8000/api/incomecat (GET)
View detail,Edit,Delete income_cat : http://localhost:8000/api/incomecat/{id} (GET)(PATCH)(DELETE)
Insert data : http://localhost:8000/api/incomecat/create (POST)
- Start Postgre, Apache service
- PgAdmin
- PHP laravel (Laravel Framework 5.7, PHP version 7.2)
- Text editor
- Postman tool
URL : https://simplewalletapp.herokuapp.com
Use Postman tool for performing integration testing with your API. Postman Colletion link: https://www.getpostman.com/collections/c2f2f656d9907c78bb09
The Laravel framework is open-sourced software licensed under the MIT license.