Giter Site home page Giter Site logo

6phere / lumen-api-suite Goto Github PK

View Code? Open in Web Editor NEW
0.0 5.0 0.0 92 KB

Plug and Play Lumen API Archetype integrated with Passport, OAuth and Swagger.

License: GNU General Public License v3.0

PHP 92.03% HTML 7.97%
lumen lumen-api oauth2 swagger passport php

lumen-api-suite's Introduction

Sixphere Lumen API Suite

Image Sixphere

Plug and Play Lumen API Archetype integrated with Passport, OAuth and Swagger.

Image Sixphere

Features

  • Laravel Passport integration for API authentication
  • Swagger 3.0 integration for API tooling

Dependencies

Installation

Install dependencies

composer install 

Create .env file and configure database connection

cp .env.example .env

Generate and set a 32 bits Key for the APP_KEY variable in .env file

APP_KEY=<32 bits API Key>

Execute a database migration to create database resources

php artisan migrate

Create Passport resources in database

php artisan passport:install

Execute database seeds

php artisan db:seed

Generate Swagger sample documentation

php artisan swagger-lume:generate

API Suite UI

ELK STACK INTEGRATION

Integrate the Lumen Archetype with ELK Stack doesn't require any further configuration, only set the Kibana URL to use the welcome UI link.

ELK Environment

For test purposes, an existing and preconfigured docker image has been used

Nginx and Lumen logs integration example

Image Kibana

Install Filebeat on server which contains Nginx and Lumen. Simply follow the instructions given by the Kibana help page

http://kibana_url/app/kibana#/home/tutorial/nginxLogs?_g=()

For a simple integration between Lumen and Logstash, edit the Filebeat config file filebeat.yml and activate a prospector of type "log" with the configuration below:

type: log  
enabled: true  
paths:  
  - /home/vagrant/lumenArquetype/storage/logs/lumen.log  
  multiline.pattern: ^\[[0-9]{4}  
  multiline.negate: true  
  multiline.match: "after"  
  multiline.max_lines: 500  
  multiline.timeout: 5s  

Licence

Licenced under GNU GENERAL PUBLIC LICENSE [...]

Author

Sixphere is not only a group of experienced professionals, that keep a huge amount of knowledge, take care about what and how they do their job. They solve their partner problems in an agile way and are aware of their customer needs through emotional intelligence connections.

Sixphere is a simpler way of understanding IT services, based on a strong and well balanced mix-ture of principles. Searching for strong professional relationships, supplying strong technical skills and offering a deep knowledge; in a collaborative, adaptative and agile way to reach its goal: helping to carry out its customer’s objectives, or better said its partners. Would you like us to be partners? Let us sail together on your trip.

Sixphere Technologies 2018

Contact

Want to comment or share something, contact us [email protected]

lumen-api-suite's People

Contributors

jantoniomora avatar

Watchers

 avatar  avatar  avatar  avatar  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.