前回の記事で、Laradockを使用して、docker上にlaravelの仮想環境を構築しました。 LaradockでLaravel環境を構築する 今回は、その環境を利用して、React.JS + Laravel 8 + MySQL + API RESTでCRUDを作成してみたいと思います。 Laravelプロジェクトの作成 前回の記事に沿っている方はすでに作成していますが、まず、LaravelプロジェクトをComposerでインストールします。 laravel/uiのインストール 次にlaravel/uiをインストールします。laravel/uiをインストールすると、artisan uiコマンドが使えるようになります。これはフロントエンド開発を行うためのテンプレートです。 Reactのインストール 次にReact.jsをインストールします。 npm install && npm run