Skip to content

πŸ‘“ Step by step to run laravel 11, with docker and tailwind

Notifications You must be signed in to change notification settings

valb-mig/laravel.docker-tailwind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“– 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

About

πŸ‘“ Step by step to run laravel 11, with docker and tailwind

Topics

Resources

Stars

Watchers

Forks