A preconfigured Laravel, React, Typescript, Docker boilerplate to save you time!
This repo is a Laravel-React-Docker boilerplate that provides a solid starting point for building a project using these technologies. It includes PHP 8.2.3, Laravel 10, Laravel Websockets, Laravel Horizon, React 17, Vite 3, ESLint 8, TypeScript 4.7, Husky/Commit lint, Redis 7, Postgres 14.4, and Nginx 1.23. The purpose of this repo is to offer a monolithic repository for easy project setup and development.
To install this boilerplate, follow these steps:
git clone git@github.com:lockhinator/laravel-react-docker-boilerplate.git.cd laravel-react-docker-boilerplate..env.example file to .env using the command cp .env.example .env..env file to configure the database connection.docker-compose build fpm node web
docker-compose run --rm fpm php artisan key:generate
docker-compose run --rm fpm php artisan migrate
docker-compose run --rm fpm composer install
docker-compose run --rm node yarn
docker-compose up -d
http://localhost to ensure that the application is running.The Laravel-React-Docker boilerplate provides a comprehensive starting point for developers looking to build projects using Laravel, React, and Docker. It includes key features such as Laravel Websockets, Laravel Horizon, and Vite for efficient and real-time development. The installation process is straightforward, relying on Docker for easy setup and containerization. With this boilerplate, developers can start building their applications quickly and efficiently.