Skip to content

A boiler plate for a laravel 9, vue 3, vite and a dockerized container.

License

Notifications You must be signed in to change notification settings

efren-corillo/laravel9-vue3-vite-docker

Repository files navigation

Dockerized Laravel 9 & Vue 3 App with TypeScript

Docker development implementation for Laravel 9.* with:

  • Nginx
  • MySql
  • PHP8.2
  • Vue
  • Node
  • Reddis

Installation

  • Clone this repository git clone https://github.com/efren-corillo/laravel9-vue3-vite-docker
  • Make sure you have docker installed on your local machine, you do not need to have php / mysql / redis / node installed on your machine
  • Copy .env file: cp .env.example .env
  • Set the environment variables in .env file
  • Run command: docker-compose up --build -d
  • Run the container in bash mode: docker exec -it ppro_app /bin/sh
  • Inside this container now you can run all the commands as if if you are on local environment:
  • Install composer dependencies: composer install
  • Generate key: php artisan key:generate
  • Run migration: php artisan migrate
  • Run seeder: php artisan db:seed
  • Install javascript dependencies: npm
  • Install javascript dependencies: npm install
  • Compile the assets: yarn dev / yarn watch / dcoker-compose run npm run dev
  • You can access the project at: http://localhost:8000
  • or
  • Install composer dependencies: docker-compose run php composer install
  • Install javascript dependencies: docker-compose run npm install

#Refference

About

A boiler plate for a laravel 9, vue 3, vite and a dockerized container.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published