Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 1.97 KB

README.md

File metadata and controls

68 lines (44 loc) · 1.97 KB

📖 Example to use Laravel with Docker and Tailwind

This project objective is to show how to use Laravel with Docker and Tailwind!

📌 Requirements

📌 Installation

📌 Laravel

Warning

Change {project} to to your project name on most of the files

composer create-project --prefer-dist laravel/laravel project

🔧 Ambient configuration

  • Copy the .env.example file to .env
    cp .env.example .env.

Tip

user the ./.env.edit file to see the default values.

🔧 Docker configuration

🔩 Ngnix & Mysql

Tip

You can copy the ./docker-compose file to see set the default values.

🔩 Docker compose

Tip

You can copy the ./docker-compose.yml file to see set the default values.

📌 Tailwind

npm install -D tailwindcss postcss autoprefixer

npx tailwindcss init -p

🔧 Vite configuration

Tip

You can copy the ./vite.config.js file to see set the default values.

🚀 Start the project

  • Inside the project folder run the command:
    docker-compose up -d --build

  • Enter the docker bash to run tailwind:
    docker-compose exec app bash

  • Run the command:
    npm run dev