https://github.com/yuriyoung/mclarm
RESTful API microservice base on laravel framework (see dev branch)
https://github.com/yuriyoung/mclarm
api json jwt jwt-auth laravel laravel-framework laravel6 mclarm microservice rest-api socialite yuriyoung
Last synced: 2 months ago
JSON representation
RESTful API microservice base on laravel framework (see dev branch)
- Host: GitHub
- URL: https://github.com/yuriyoung/mclarm
- Owner: yuriyoung
- License: mit
- Created: 2020-02-27T14:31:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T11:16:29.000Z (about 3 years ago)
- Last Synced: 2025-04-04T17:13:38.973Z (12 months ago)
- Topics: api, json, jwt, jwt-auth, laravel, laravel-framework, laravel6, mclarm, microservice, rest-api, socialite, yuriyoung
- Language: PHP
- Homepage: https://github.com/yuriyoung/mclarm
- Size: 365 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
REST API base on laravel framework.
# Features
- jwt token auth
- socialite auth
- api request
- api json resource response
# Requirements
- Laravel 6 framework
- jwt-auth
- laravel/socialite
# Installation
1. Clone this repo and run `composer install`
```shell script
git clone https://github.com/yuriyoung/mclarm.git
composer install
```
2. Copy `.env` file
```shell script
cp .env.example .env
```
3. Edit your database credential in `.env` file.
4. Add providers `CLIENT_ID`, `CLIENT_SECRET` and `REDIRECT`
```dotenv
GITHUB_CLIENT_ID=your-app-id
GITHUB_CLIENT_SECRET=your-app-secret
GITHUB_REDIRECT=yuur-app-redirect
```
> Make sure you set correct redirect url in dev console of providers.
> It should be like `"{env(APP_URL)}/oauth/github/callback"` format.
5. Now you can run `php artisan migrate` and `serve` your app
# License
The mclarm software is licensed under the [MIT License](https://github.com/yuriyoung/mclarm/blob/master/LICENSE).
## CopyRight
Copyright © Yuri Young yuri.young@qq.com