Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/