Laravel CRUD API application for Digital Information Content Platform with Telecommunications Network-Assisted Remote Monitoring and Management project included with Authentication Module & Book, Video, & Device Module. It's included with JWT authentication and Swagger API format.
- PHP-8
- Laravel-9
- Laravel 9.x
- Interface-Repository Pattern
- Model Based Eloquent Query
- Swagger API Documentation - https://github.com/DarkaOnLine/L5-Swagger
- JWT Auth - https://github.com/tymondesigns/jwt-auth
- PHP Unit Testing - Some basic unit testing added.
sudo nano /var/www/rmms-backend/public/announcement.txt
after updating the txt file hit ctrl + x > enter Y > hit enter again to save.
sudo nano /var/www/rmms-backend/public/admin_password.txt
after updating the txt file hit ctrl + x > enter Y > hit enter again to save.
- Register User API with Token
- Login API with Token
- Authenticated User Profile
- Refresh Data
- Logout
- Book List
- Book List [Public]
- Create Book
- Edit Book
- View Book
- Delete Book
- Video List
- Video List [Public]
- Create Video
- Edit Video
- View Video
- Delete Video
- Device IP
- Device List
- Device List [Public]
- Create Device
- Edit Device
- View Device
- Delete Device
- Clone Project -
git clone https://github.com/juancarloscruzdela/rmms-backend.git
- Go to the project drectory by
cd rmms-backend
& Run the - Create
.env
file & Copy.env.example
file to.env
file - Create a database called -
rmms
. - Install composer packages -
composer install
. - Now migrate and seed database to complete whole project setup by running this-
Migrate tables
php artisan migrate:refresh
Migrate & seed tables
php artisan migrate:refresh --seed
It will create 21
Users and 103
Dummy Books.
- Generate Swagger API
php artisan l5-swagger:generate
- Initialize API routes & config.
php artisan optimize
- Run the server -
php artisan serve
- Open Browser - http://127.0.0.1:8000 & go to API Documentation - http://127.0.0.1:8000/api/documentation
- You'll see a Swagger Panel.
- First Login with the given credential or any other user credential
- Set bearer token to Swagger Header or Post Header as Authentication
- Hit Any API, You can also hit any API, before authorization header data set to see the effects.
- Test with Postman - https://www.getpostman.com/collections/5642915d135f376b84af [Click to open with post man]
- Test with Swagger.
- Swagger Limitation: Image can not be uploaded throw Swagger, it can be uploaded throw Postman.