- PHP 8.2.2
- Laravel 9.52.0
- TypeScript 4.9.5
- React 18.2.0
- Inertia (SPA構成を行うために使用)
- Chakra UI
- Docker (Laravel Sail)
- Clone the repository
$ git@github.com:takumines/google-search-sample.git $ cd google-search-sample
- Copy env file
$ cp .env.example .env
- Custom Search Json API Setting
CUSTOM_SEARCH_API_KEY=<api key> CUSTOM_SEARCH_ENGINE_ID=<engine key>
- Install PHP packages
$ docker run --rm \ -u "$(id -u):$(id -g)" \ -v $(pwd):/var/www/html \ -w /var/www/html \ laravelsail/php81-composer:latest \ composer install --ignore-platform-reqs
- Start the docker containers and generate key
$ ./vendor/bin/sail up -d $ ./vendor/bin/sail artisan key:generate
- Install node_modules package and build
$ ./vendor/bin/sail npm install $ ./vendor/bin/sail npm run dev