Skip to content

berkanumutlu/laravel-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Logo

Laravel Vue Repo stars License Laravel Version PHP Version MySQL Version nginx Version Redis Version Docker Version Composer Version

Laravel Vue

Laravel, Vue, Vite, Tailwind

Installation

1) Clone repository

$ git clone https://github.com/berkanumutlu/laravel-vue.git
OR
$ git clone [email protected]:berkanumutlu/laravel-vue.git

2) Copy the example env file and make the required configuration changes in the .env file

$ cp .env.example .env
$ cp /project/.env.example /project/.env

3) Install docker container (required docker)

$ docker-compose up -d

4) After installation, find your app's container id on docker

$ docker ps
CONTAINER ID   IMAGE                               COMMAND                  CREATED          STATUS          PORTS                                            NAMES
...
0ab633cf5b39   laravel-vue-php8               "docker-php-entrypoi…"   55 minutes ago   Up 55 minutes   0.0.0.0:5173->5173/tcp, 0.0.0.0:9000->9000/tcp   laravel_vue-app
...
  • And connect to the terminal of your app's container
$ docker exec -it {APP_CONTAINER_ID} bash

5) Install all the dependencies using composer and npm

$ composer install
$ npm install

6) Generate a new application key

$ php artisan key:generate

7) Run the database migrations (Don't forget set the database connection in .env before migrating)

$ php artisan migrate

8) Start the local development server

$ npm run dev
  • To stop the Docker container, use the following command
$ docker-compose stop

NOTE: Every time you run the application's Docker container, you need to use the docker compose up command and then connect to the app container's terminal and run the npm run dev command. If you do not want to do this, you can configure the Dockerfile to automatically start the npm run dev command

Packages

composer.json

global
dev

package.json

global
dev

License

The MIT License (MIT). Please see License File for more information.