Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oli-moreau/laravel-vue
Laravel 10 with Vue 3
https://github.com/oli-moreau/laravel-vue
Last synced: 3 days ago
JSON representation
Laravel 10 with Vue 3
- Host: GitHub
- URL: https://github.com/oli-moreau/laravel-vue
- Owner: oli-moreau
- Created: 2023-07-31T23:49:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-09T21:16:39.000Z (about 1 year ago)
- Last Synced: 2023-09-09T23:23:09.231Z (about 1 year ago)
- Language: PHP
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel 10 with Vue 3 Project template
This is a Laravel 10 project with Vue 3 and Vue Router, intended to be run as a Docker container. The project runs a Laravel development server and Vue development server inside the container, making it easy to get started with development.
## Prerequisites
Before proceeding, make sure you have the following installed on your system:
- Docker: [Install Docker](https://www.docker.com/get-started)
## Getting Started
Follow the steps below to build and run the Laravel project inside a Docker container:
### 1. Clone the Repository
```bash
git clone https://github.com/oli-moreau/laravel-vue.git
cd laravel-vue
```### 2. Build the Docker Image
```bash
docker build -t debian-laravel-vue .
docker run -d -p 8000:8000 -p 3306:3306 -p 5173:5173 --name debian-laravel-vue -v "$(pwd)":/var/www/html debian-laravel-vue
docker exec -it debian-laravel-vue bash
```### 3. Install the dependencies
```bash
composer install
npm install
```### 4. Setup Laravel
```bash
cp .env.example .env
php artisan key:generate
```### 5. Start the development servers
```bash
php artisan serve --host=0.0.0.0
npm run dev -- --host
```
The development server is now available at http://localhost:8000/