All Projects → liyu001989 → Laravel Api Starter

liyu001989 / Laravel Api Starter

Licence: mit
laravel5.5 + dingo/api + JWT

Projects that are alternatives of or similar to Laravel Api Starter

Laravel Realworld Example App
Exemplary real world backend API built with Laravel
Stars: ✭ 954 (+1022.35%)
Mutual labels:  rest-api, laravel, jwt
Symfony Api Skeleton
rest api skeleton based on symfony-flex, api-platform, fosuserbundle etc.
Stars: ✭ 11 (-87.06%)
Mutual labels:  rest-api, jwt
Koa Typeorm Starter
Starter project for using koa with TS and TypeORM
Stars: ✭ 23 (-72.94%)
Mutual labels:  rest-api, jwt
Laravel Compass
A REST client inside your Laravel app
Stars: ✭ 1,002 (+1078.82%)
Mutual labels:  rest-api, laravel
Laravel Adminpanel
A Laravel Admin Panel (Laravel Version : 6.0)
Stars: ✭ 774 (+810.59%)
Mutual labels:  rest-api, laravel
Go Book Store Api
Go Sample project to understand Mysql CRUD operation with best practises Includes logging, JWT, Swagger and Transactions
Stars: ✭ 18 (-78.82%)
Mutual labels:  rest-api, jwt
Binding Of Isaac Api
A RESTful API for the Binding of Isaac game series
Stars: ✭ 11 (-87.06%)
Mutual labels:  rest-api, laravel
Cerberus
A demonstration of a completely stateless and RESTful token-based authorization system using JSON Web Tokens (JWT) and Spring Security.
Stars: ✭ 482 (+467.06%)
Mutual labels:  rest-api, jwt
Laravel Restify
The fastest way to make a powerful JSON:API compatible Rest API with Laravel.
Stars: ✭ 62 (-27.06%)
Mutual labels:  rest-api, laravel
Flask Restful Authentication
An example for RESTful authentication using nginx, uWSGI, Flask, MongoDB and JSON Web Token(JWT).
Stars: ✭ 63 (-25.88%)
Mutual labels:  rest-api, jwt
Train Ai With Django Swagger Jwt
Train AI (Keras + Tensorflow) to defend apps with Django REST Framework + Celery + Swagger + JWT - deploys to Kubernetes and OpenShift Container Platform
Stars: ✭ 66 (-22.35%)
Mutual labels:  rest-api, jwt
Node Typescript Koa Rest
REST API boilerplate using NodeJS and KOA2, typescript. Logging and JWT as middlewares. TypeORM with class-validator, SQL CRUD. Docker included. Swagger docs, actions CI and valuable README
Stars: ✭ 739 (+769.41%)
Mutual labels:  rest-api, jwt
Dj Rest Auth
Authentication for Django Rest Framework
Stars: ✭ 491 (+477.65%)
Mutual labels:  rest-api, jwt
Project
⭐️ Antares Project Application Skeleton. This is the very first place you should start. It allows you to create a brand new awesome project in easy few steps.
Stars: ✭ 84 (-1.18%)
Mutual labels:  rest-api, laravel
Laravel Orion
The simplest way to create REST API with Laravel
Stars: ✭ 481 (+465.88%)
Mutual labels:  rest-api, laravel
Rubel
Rubel is a cms built with Laravel and React.
Stars: ✭ 70 (-17.65%)
Mutual labels:  laravel, jwt
Rest Api With Lumen
Rest API boilerplate for Lumen micro-framework.
Stars: ✭ 464 (+445.88%)
Mutual labels:  rest-api, laravel
Laravel Vue Boilerplate
🐘 A Laravel 6 SPA boilerplate with a users CRUD using Vue.js 2.6, GraphQL, Bootstrap 4, TypeScript, Sass, and Pug.
Stars: ✭ 472 (+455.29%)
Mutual labels:  laravel, jwt
Dashboard Server
A JSON file RESTful API with authorization based on json-server
Stars: ✭ 48 (-43.53%)
Mutual labels:  rest-api, jwt
Laravel Api Boilerplate Jwt
A Laravel 5.8 API Boilerplate to create a ready-to-use REST API in seconds.
Stars: ✭ 1,155 (+1258.82%)
Mutual labels:  laravel, jwt

laravel-api-starter

这是一个 Laravel 5.5 + Dingo + JWT 的基础项目, 用于快速开始写 API

StyleCI License donate donate

  • Laravel/RESTful 交流群: 216721539

USEFUL LINK

读文档很重要,请先仔细读读文档 laravel, dingo/api,jwt,fractal 的文档。

USAGE

$ git clone [email protected]:liyu001989/laravel-api-starter.git
$ composer install
$ 设置 `storage` 目录必须让服务器有写入权限。
$ cp .env.example .env
$ vim .env
    DB_*
        填写数据库相关配置 your database configuration
    APP_KEY
        php artisan key:generate
    JWT_SECRET
        php artisan jwt:secret

$ php artisan migrate
$ php artisan db:seed (默认添加了10个用户)

头信息中可以增加 Accept:application/vnd.app.v1+json 切换v1和v2版本

如果访问一直不对,可以进入public 目录执行 php -S localhost:8000 -t public,然后尝试调用几个接口,从而确定是否为web服务器的配置问题。

相关说明

  • 通过一个中间件 https://github.com/liyu001989/dingo-serializer-switch 切换 fractal 的 serializer, 默认使用 array。
  • 让 findOrFail 返回 404, 更方便使用
  • 可以用过 Accept-Language 头来却换语言,比如 zh-CN, 当然也可以默认中文

License

MIT license

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].