Git Product home page Git Product logo

guillaumebriday / rails-tailwindcss-starter Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 709 KB

Rails 5.2 Starter project with Tailwindcss built in

Home Page: https://rails-tailwindcss-starter.guillaumebriday.xyz

License: MIT License

Ruby 70.63% JavaScript 9.20% HTML 16.18% Shell 1.02% Dockerfile 2.82% CSS 0.15%
rails tailwindcss starter webpacker postgresql review-app gitlab-ci minitest rubocop webpack

rails-tailwindcss-starter's Introduction

build Donate

Rails Tailwind CSS Starter

The purpose of this repository is to provide you a head start to build your next Rails Application with Tailwind CSS pre-installed.

Introduction

This is a Rails 6.0 application with Webpacker, Tailwind CSS, Rubocop and Docker.

To create the app, I used this command:

$ rails new --webpack --skip-action-mailer --skip-action-cable --skip-sprockets --skip-spring  --skip-coffee --skip-turbolinks --skip-javascript --skip-bootsnap --database=postgresql .

Requirements in development environment

  • Rails
  • Ruby 2.6.3
  • Node.js and Yarn
  • Docker and Docker-Compose

Installation

$ git clone [email protected]:guillaumebriday/rails-tailwindcss-starter.git
$ cd rails-tailwindcss-starter
$ bundle install
$ yarn install
$ ./bin/webpack
$ docker-compose up -d
$ bundle exec rails db:setup
$ bundle exec rails s # or RUBYOPT="--jit" bundle exec rails s

Useful commands :

$ bundle exec rails test # or RUBYOPT="--jit" bundle exec rails test
$ bundle exec rubocop # or RUBYOPT="--jit" bundle exec rubocop

Now you can access the application on http://localhost:3000.

Deployment

I designed this application to setup and try Review Apps on Gitlab.

Contributing

Do not hesitate to contribute to the project by adapting or adding features ! Bug reports or pull requests are welcome.

License

This project is released under the MIT license.

rails-tailwindcss-starter's People

Contributors

dependabot[bot] avatar guillaumebriday avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jcody

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.