rails-playground

Rails playground for testing stimulus, javascript and new rails features

MIT License

Stars
3
Committers
1

= 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

////

Related Projects