Catatan: Saya lupa kalau Laravel tidak otomatis membuat git repository.
Saya membuat repository ini setelah selesai membuat aplikasi.
Oleh karena itu, nama commitnya adalah Initial commit
saja dan tidak bisa menunjukkan flow development.
- Members can borrow books with conditions
- Members may not borrow more than 2 books
- Borrowed books are not borrowed by other members
- Member is currently not being penalized
- Member returns the book with conditions
- The returned book is a book that the member has borrowed
- If the book is returned after more than 7 days, the member will be subject to a penalty. Member with penalty cannot able to borrow the book for 3 days
- Check the book
- Shows all existing books and quantities
- Books that are being borrowed are not counted
- Member check
- Shows all existing members
- The number of books being borrowed by each member
- it should be use any framework (using Laravel)
- it should be use Swagger as API Documentation (http://localhost:8000/api/documentation)
- it should be use Database (SQL/NoSQL)
- it should be open sourced on your github repo
- Implement DDD Pattern
- Implement Unit Testing
- Implement Feature Testing
Tes algoritma dapat diakses pada folder algorithm
.
- Reverse alphabet
- Mencari kata terpanjang
- Menghitung jumlah kata pada array
- Mencari pengurangan dari diagnoal matriks
Instalasi dilakukan seperti biasa pada proyek Laravel:
git clone ...
composer install
cp .env.example .env
nano .env
php artisan key:generate
php artisan migrate --seed
Jalankan aplikasi Laravel seperti biasa:
php artisan serve
Anda dapat mengunjungi aplikasi di http://localhost:8000 serta dokumentasi Swaggernya di http://localhost:8000/api/documentation.
Untuk menjalankan test case, jalankan perintah berikut:
php artisan test
Laravel dilisensikan dengan MIT license. Keseluruhan kode di dalam proyek ini akan mengikuti lisensi ini.