This project objective is to show how to use Laravel with Docker and Tailwind!
Warning
Change {project} to to your project name on most of the files
composer create-project --prefer-dist laravel/laravel project
- Copy the .env.example file to .env
cp .env.example .env.
Tip
user the ./.env.edit file to see the default values.
Tip
You can copy the ./docker-compose file to see set the default values.
Tip
You can copy the ./docker-compose.yml file to see set the default values.
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
Tip
You can copy the ./vite.config.js file to see set the default values.
-
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