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

https://github.com/swobspace/rails-playground

Rails playground for testing stimulus, javascript and new rails features
https://github.com/swobspace/rails-playground

datatables rails7 stimulus

Last synced: about 1 month ago
JSON representation

Rails playground for testing stimulus, javascript and new rails features

Awesome Lists containing this project

README

          

= rails-playground

Rails playground for testing stimulus, javascript and new rails features.

https://swobspace.github.io/rails-playground

Using:

* rails 7.0
* jssbundling-rails with esbuild
* cssbundling-rails with bootstrap 5

Have fun. If you find a bug or something to improve, open an issue or create a pull request.

== Installation

.Clone the repository
----
git clone https://github.com/swobspace/rails-playground.git
----

.Change into the directory rails-playground and install dependencies
----
cd rails-playground
bundle && yarn
----

.Run the database migration and fill database with some test data
----
bin/rake db:migrate
bin/rake db:seed
----

.Start the webserver
----
bin/dev
----

== Available Examples

[cols="1,5"]
|===
|Category | Description

|Datatables
|Using a single stimulus controller for 3 different scenarios: html tables with and without buttons and for tables with server side processing (fetching data via ajax)
|===

////
== How to start fresh

.generate app
----
rails new rails-playground \
--database=sqlite3 \
--skip-test \
--skip-jbuilder \
--javascript esbuild \
--css bootstrap
----
////