rails5-gmap-stimulus-tailwind-demo Tailwind Templates

Rails5 Gmap Stimulus Tailwind Demo

README

Below is a simple demo using rails5 + webpacker + stimulus + google maps + tailwindcs.

Install

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

Setup database

# bundle exec rake db:create
# bundle exec rake db:migrate
# bundle exec rake seed:vehicles file="public/sample_data.json"

Testing

We use rspec for ruby and jest for javascript testing

# yarn add jest babel-jest --dev
# yarn test

Run rails server

# bundle exec rails s -b 0.0.0.0 -e development -p 3000

And browse http://127.0.0.1:3000/maps/demo_filtering

MacDown Screenshot

Top categories

Loading Svelte Themes