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.
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.
- Clone the repo
git clone https://github.com/sohel40b/todo-docker-laravel-vue.git
- Switch to the project folder and open terminal
docker-compose build
docker-compose up -d
- Open Docker-Desktop app and run command in php image terminal
cp .env.example .env
composer install
Edit .env filephp artisan key:generate
DB_HOST=mysql DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=root DB_PASSWORD=root
php artisan migrate
- Finally install and run server in php image terminal
npm install
npm run dev
server: {
host: '0.0.0.0',
hmr: {
host: 'localhost'
}
},
Documentation URL provide below.
http://localhost:8000/request-docs/