Giter VIP home page Giter VIP logo

rmms-backend's Introduction

Laravel CRUD API with Auth

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.


Language & Framework Used:

  1. PHP-8
  2. Laravel-9

Architecture Used:

  1. Laravel 9.x
  2. Interface-Repository Pattern
  3. Model Based Eloquent Query
  4. Swagger API Documentation - https://github.com/DarkaOnLine/L5-Swagger
  5. JWT Auth - https://github.com/tymondesigns/jwt-auth
  6. PHP Unit Testing - Some basic unit testing added.

Add, update & remove announcement

sudo nano /var/www/rmms-backend/public/announcement.txt

after updating the txt file hit ctrl + x > enter Y > hit enter again to save.

Update admin password

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.

API List:

Authentication Module
  1. Register User API with Token
  2. Login API with Token
  3. Authenticated User Profile
  4. Refresh Data
  5. Logout
Book Module
  1. Book List
  2. Book List [Public]
  3. Create Book
  4. Edit Book
  5. View Book
  6. Delete Book
Video Module
  1. Video List
  2. Video List [Public]
  3. Create Video
  4. Edit Video
  5. View Video
  6. Delete Video
Device Module
  1. Device IP
  2. Device List
  3. Device List [Public]
  4. Create Device
  5. Edit Device
  6. View Device
  7. Delete Device

How to Run:

  1. Clone Project -
git clone https://github.com/juancarloscruzdela/rmms-backend.git
  1. Go to the project drectory by cd rmms-backend & Run the
  2. Create .env file & Copy .env.example file to .env file
  3. Create a database called - rmms.
  4. Install composer packages - composer install.
  5. 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.

  1. Generate Swagger API
php artisan l5-swagger:generate
  1. Initialize API routes & config.
php artisan optimize
  1. Run the server -
php artisan serve
  1. Open Browser - http://127.0.0.1:8000 & go to API Documentation - http://127.0.0.1:8000/api/documentation
  2. You'll see a Swagger Panel.

Procedure

  1. First Login with the given credential or any other user credential
  2. Set bearer token to Swagger Header or Post Header as Authentication
  3. Hit Any API, You can also hit any API, before authorization header data set to see the effects.

Test

  1. Test with Postman - https://www.getpostman.com/collections/5642915d135f376b84af [Click to open with post man]
  2. Test with Swagger.
  3. Swagger Limitation: Image can not be uploaded throw Swagger, it can be uploaded throw Postman.

rmms-backend's People

Contributors

juancarloscruzdela avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.