This project was built to test how to add Stimulus JS on a Rails application to manipulate the DOM using Stimulus controllers, targets, actions and, values. It performs a counter on when the animal name is typed and, validate the animal age
Built with Ruby on Rails framework and, Stimulus JS.
- Ruby v2.7.0
- Ruby on Rails v6.1.3
- Stimulus JS 2.0.0
- Git
In order to clone the repository, please follow this instructions
- Install Git following the instructions available at Git
- Install Ruby following the instructions available at Ruby
To get a local copy up and running follow these simple example steps.
git clone git@github.com:marcelomaidden/railsstimulus.git
cd railsstimulus
Install gems with:
bundle install
Setup database with:
rails db:create
rails db:migrate
rails db:seed
Install JavaScript packages
yarn install --check-files
Start server with:
rails server
Open up your application on your preferred browser
http://localhost:3000
👤 Marcelo Fernandes
- GitHub: @marcelomaidden
- Twitter: @marcelomaidden
- LinkedIn: Marcelo Fernandes
- Ruby on Rails and Stimulus JS creators
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!