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
- Host: GitHub
- URL: https://github.com/swobspace/rails-playground
- Owner: swobspace
- License: mit
- Created: 2022-02-04T11:55:30.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-01T07:36:07.000Z (almost 2 years ago)
- Last Synced: 2025-01-27T16:48:43.107Z (about 1 year ago)
- Topics: datatables, rails7, stimulus
- Language: Ruby
- Homepage: https://swobspace.github.io/rails-playground
- Size: 2.37 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
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
----
////