Skip to content

kawaus03/docker-laravel-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerized starter template for Laravel + Vite Vuejs project.

Stack includes

  • php-fpm
  • Node.js
  • MySQL
  • Nginx

Initial installation

  1. Clone this repository.
$ git clone https://github.com/kawaus03/docker-laravel-vue.git
  1. Clone the Laravel and Vuejs project in the src dir.
$ cd docker-laravel-vue/src
$ git clone https://github.com/kawaus03/laravel-sanctum.git
$ git clone https://github.com/kawaus03/vue-sanctum.git
  1. Running the initial installation.
$ cd docker-laravel-vue
$ make init
  1. Install and compile npm packages in running docker container.
$ cd docker-laravel-vue
$ make node
$ yarn install
$ yarn dev
  1. Append to the /etc/hosts file.
127.0.0.1 docker-laravel-vue.work
127.0.0.1 api.docker-laravel-vue.work
  1. Access to Laravel and Vuejs project.