Giter Site home page Giter Site logo

beta_native_treat's Introduction

README

Work in progress for creating an application template.

INCLUDED GEMS

devise friendly_id sidekiq name_of_person stripe rspec factorybot css-bundling tailwind css

USAGE

When creating a new rails app simply pass the template filename and ruby extension through. I opt for esbuild instead of the default importmap configuration for JavaScript.

$ rails new sample_app -j esbuild -m Rails-kickoff-app/template.rb

For PostgreSQL use

$ rails new sample_app -j esbuild -m Rails-kickoff-app/template.rb --database=postgresql

Once installed what do I get?

  • Tailwind CSS
  • Devise with a new name field already migrated in. The name field maps to the first_name and last_name fields in the database thanks to the name_of_person gem.
  • Enhanced views and devise views using Tailwind CSS.
  • The Stripe gem installed with the Stripe API to make accepting payments on the web. Be sure to add your own unique API keys.
  • Support for Friendly IDs thanks to the handy friendly_id gem. Note that you'll still need to do some work inside your models for this to work. This template installs the gem and runs the associated generator.
  • Rspec-rails testing framework for rails.
  • Factorybot a fixtures replacement with a straightforward definition syntax, support for multiple build strategies, and support for multiple factories for the same class, including factory inheritance.
  • Optional Foreman support. Run .bin/dev to kick off rails and Tailwind processes. Foreman needs to be installed as a global gem on your system for this to work. i.e. gem install foreman
  • Custom view helper defaults for basic button and form elements.
  • Scaffolding templates made with Tailwind CSS

Boot it up

$ ./bin/dev

Screenshots

Screenshot 2023-02-02 at 2 25 56 PM

beta_native_treat's People

Contributors

tunkhine126 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.