Fendo181 / lumen_sample_api

Lumenで堅牢なAPIを作るサンプルリポジトリです。
1 stars 0 forks source link

Description

LumenでRESTfulなAPIを作成する。

API Doc(Swagger)

Authors API

Usage

パッケージをインストールする。

composer install

.envファイルを作成する。

cp env.example .env

最初にDBと権限を持ったユーザを作成する。

mysql>create database DB_NAME;
mysql>grant all on DB_NAME.* to 'USER_NAME'@HOST_NAME identified by 'PASSWORD';

migrate

$php artisan migrate

Local Serverを立ち上げる。

php -S localhost:8000 -t public

License

The Lumen framework is open-sourced software licensed under the MIT license