Boilerplate for Laravel 5.8.3 & Typescript (with docker-compose)
I created this as a starter-kit development project for PHP with typescript (both for Vue and React developer) for shorter time taking to initialise new project.
Prerequisites
- Nodejs (Official website)
- Yarn (Official website)
- Docker (Official website)
Starting Development
- Simply run
docker-compose up
at root directory. - Execute
composer install
to install all dependencies from laravel starter project. - Duplicate
.env
file and modify according to your needs. - Also execute
php artisan key:generate
to generate the application key. - Start new terminal, change directory to
web
folder and runyarn install
to install dependencies on client side. - Now you must be able to navigate to server side with localhost
- That's it! HAPPY DEV :)