Giter Club home page Giter Club logo

tailwindcss-docker-playground's Introduction

Tailwind CSS Docker Playground

About Tailwind CSS Docker Playground

Tailwind CSS Docker Playground is a container based playground with live reload for learning Tailwind CSS. Your host machine only needs to have Docker and Docker Compose installed on it to get up and running with the Tailwind CSS Docker Playground.

Features

Quick Start

  1. Make sure you have Docker and Docker Compose installed on your machine.

  2. Clone this repo to a folder of your choice.

  3. Run docker-compose up to build the Docker image, install the projects node modules, and start the live reloading server. Once this process is complete, you should see a URL ending with port 9000. Open this in your browser. At this time, you should be seeing a raw unstyled welcome page.

  4. Open a new tab or terminal window and browse to the Tailwind CSS Docker Playground project root. Run the command below to generate the /src/public/main.css file, which imports Tailwind CSS, processes any custom CSS in the /src/base.css file, add autoprefixer support, and outputs the /src/public/main.css.

    docker run -v $(PWD)/src:/var/www -w /var/www node:12.16-alpine npm run build
    
  5. If you return to your browser, you should now see Tailwind CSS styles applied to the welcome screen.

  6. Now you can open up the /src/public/index.html and make a chance to the default welcome screen. As soon as you save your change, your browser should automatically reload showing the latest changes. If you want to test out any of the @apply or themeing capabilities of Tailwind CSS, you will need to re-run the command from step 4 above to regenerate your /src/public/main.css file.

License

The Laravel framework is open-sourced software licensed under the MIT license.

tailwindcss-docker-playground's People

Contributors

chrislentz avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.