2. Membuat API Login, Check Login, Destroy Token ( Logout ) menggunakan JWT dengan Lumen/Node.js/.net/Go.
3.Membuat API CRUD menggunakan Lumen/Node.js/.net/Go dengan layanan Firebase Realtime Database / Firebase Firestore.
setup .env field below
FIREBASE_CREDENTIALS=
FIREBASE_DATABASE_URL=
api:
hasil: http://your-domain/api/firebase (create, update, delete);
hasil: http://your-domain/api/firebase/{id} (read);
4. Membuat dockerfile (php 7.3 , sqlsrv driver , redis driver ( redis servernya tidak perlu, hanya driver nya saja) , driver mongodb , nginx web server ) untuk membuild Lumen.
Ex:
- docker build . -t sera:1.0
- docker run -itdp 8000:80 -v `pwd`:/var/www/html --name serav1 sera:1.0
5. Membuat Unit Test API CRUD menggunakan Lumen/Node.js/.net/Go berdasarkan yang sudah dibuat ( 3 api saja ).
- cd /path/root/project && vendro/bin/phpunit
- Register
(POST) https://reqres.in/api/register
{
"email": "eve.holt@reqres.in",
"password": "pistol"
}
- Login
(POST) https://reqres.in/api/login
{
"email": "eve.holt@reqres.in",
"password": "cityslicka"
}
https://gist.github.com/Loetfi/fe38a350deeebeb6a92526f6762bd719
output harus menjadi seperti index array seperti ini :
Array
(
[0] => 100000
[1] => 150000
[2] => 200000
)
bukan seperti ini
Array
(
[2] => 100000
[3] => 150000
[4] => 200000
)
hasil: http://your-domain/api/task-7
hasil: http://your-domain/api/debug-sentry
9. Membuat dokumentasi API diatas menggunakan swagger. ex : darkaonline/l5-swagger atau darkaonline/swagger-lume.
hasil: http://your-domain/api/documentation
setup .env field below
MAIL_MAILER=mailgun
MAILGUN_DOMAIN=
MAILGUN_SECRET=
MAILGUN_ENDPOINT=
Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Lumen attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as routing, database abstraction, queueing, and caching.
Documentation for the framework can be found on the Lumen website.
Thank you for considering contributing to Lumen! The contribution guide can be found in the Laravel documentation.
If you discover a security vulnerability within Lumen, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.
The Lumen framework is open-sourced software licensed under the MIT license.