Getting Started

This repository provides you a development environment without requiring you to install PHP, a web server, and any other server software on your local machine. For this, it requires only Docker.

Installation

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

  1. Clone the repo
    git clone https://github.com/sohel40b/todo-docker-laravel-vue.git
  2. Switch to the project folder and open terminal
    docker-compose build
    docker-compose up -d
  3. Open Docker-Desktop app and run command in php image terminal
    cp .env.example .env
    composer install
    php artisan key:generate 
    Edit .env file
    DB_HOST=mysql
    DB_PORT=3306
    DB_DATABASE=laravel
    DB_USERNAME=root
    DB_PASSWORD=root
    php artisan migrate
  4. Finally install and run server in php image terminal
    npm install
    npm run dev

For Windows user only change your code in vite.config.js

server: {
     host: '0.0.0.0',
     hmr: {
         host: 'localhost'
     }
 },

Documentation

Documentation URL provide below.

http://localhost:8000/request-docs/

(back to top)