Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guillaumebriday/rails-tailwindcss-starter

Rails 5.2 Starter project with Tailwindcss built in
https://github.com/guillaumebriday/rails-tailwindcss-starter

gitlab-ci minitest postgresql rails review-app rubocop starter tailwindcss webpack webpacker

Last synced: about 2 months ago
JSON representation

Rails 5.2 Starter project with Tailwindcss built in

Awesome Lists containing this project

README

        

[![build](https://gitlab.com/guillaumebriday/rails-tailwindcss-starter/badges/master/build.svg)](https://gitlab.com/guillaumebriday/rails-tailwindcss-starter/pipelines)
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/guillaumebriday)

# 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](https://github.com/rails/webpacker), [Tailwind CSS](https://tailwindcss.com), [Rubocop](https://github.com/rubocop-hq/rubocop) and [Docker](https://www.docker.com).

To create the app, I used this command:

```bash
$ 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

```bash
$ 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 :
```bash
$ 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](http://opensource.org/licenses/MIT) license.