# clone it
git clone https://github.com/akilsagitarius/akil-nobi.git
cd akil-nobi
# Install dependencies
composer install
# Copy Env file
cp .env.example .env
# Generate key
php artisan key:generate
# Run migrations
php artisan migrate ||
(jika tidak menggunakan migration import dari file nobitest.sql)
# Run seeder
php artisan db:seed
# Optimize
php artisan optimize
# Run the project
php artisan serve
- API to add a new user
[POST] /api/v1/user/add
example input
{
"name" : "Muhammad Akil",
"username" : "akil"
}
- API to get all user
[GET] /api/v1/ib/member
- API to update total balance
[POST] /api/v1/ib/updateTotalBalance
example input
{
"current_balance" : 2800000
}
- API to get all NAB
[GET] /api/v1/ib/listNAB
- API to deposit balance
[POST] /api/v1/ib/topup
example input
{
"user_id" : "1",
"amount_rupiah" : 50000
}
- API to withdraw balance
[POST] /api/v1/ib/withdraw
example input
{
"user_id" : "1",
"amount_rupiah" : 1000
}