Code Monkey home page Code Monkey logo

notes's Introduction

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...

notes's People

Contributors

nguyenxuanhung2304 avatar

Stargazers

Nguyen Xuan Hung avatar

Watchers

 avatar

notes's Issues

Add CI

Add the Github Action with two commands when submitting a PR:

  • rubocop
  • bundle exec rspec
  • bundle exec brakeman

Add rubocop rule

Content:

  • Add .rubocop.yml
  • Disable styles unnecessary:
    • Style/Documentation
    • frozen_string_literal

Fix rubocop

Content:

  • Fix files that have broken rubocop rules
  • Run the command bellow in your terminal:
    rubocop -A
    

It will be fix all,so cool

[Gem] Add tailwindcss

Follow these steps:

  1. Add the tailwindcss-rails gem to your Gemfile:
gem 'tailwindcss-rails'
  1. Run the following command in your terminal at the root of your project rails tailwindcss:install to install Tailwind CSS

  2. add the paths to all of your template files to your ./config/tailwind.config.js file:

module.exports = {
  content: [
    './public/*.html',
    './app/helpers/**/*.rb',
    './app/javascript/**/*.js',
    './app/views/**/*',
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}
  1. Create a new file name: app/assets/stylesheets/application.tailwind.css and add following content:
@tailwind base;
@tailwind components;
@tailwind utilities;

Reference:

https://tailwindcss.com/docs/guides/ruby-on-rails

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.