Below is a simple demo using rails5 + webpacker + stimulus + google maps + tailwindcs.
Install webpacker + stimulusjs + tailwind + jest
# rails new rails5-gmap-stimulus-demo --database=postgresql --skip-sprockets --skip-bundle --skip-coffee --skip-test --webpack
# cd rails5-gmap-demo
# yarn add stimulus
# gem install -V bundler --no-ri --no-rdoc
# bundle install
# yarn install
# bundle exec rake db:create
# bundle exec rake db:migrate
# bundle exec rake seed:vehicles file="public/sample_data.json"
We use rspec for ruby and jest for javascript testing
# yarn add jest babel-jest --dev
# yarn test
# bundle exec rails s -b 0.0.0.0 -e development -p 3000
And browse http://127.0.0.1:3000/maps/demo_filtering