Unlike the original demo, this replaces webpacker with Vite Rails, which provides a substantially faster development experience and use SQLite3 for testing and development instead of pg.
It also leverages js_from_routes to auto-generate API methods to effortlessly integrate with the Rails backend, which works nicely in combination with vite-plugin-full-reload
Styles are powered by Windi CSS, a faster alternative to Tailwind CSS.
To learn more about how to move from webpacker to Vite Rails, check this pull request.
To learn more about how js_from_routes can help you simplify your code, check this pull request.
Visit the live demo. Login with:
- Username: [email protected]
- Password: secret
Clone the repo locally:
git clone https://github.com/amigobg/pingcrm-vite.git
Setup (install dependencies, create and seed database):
cd pingcrm-vite
bin/setup
Start it:
foreman start
You're ready to go! Visit PingCRM in your browser (http://localhost:3000) not (http://127.0.0.1:3000 ), and login with:
- Username: [email protected]
- Password: secret
If user doesn't work you can load the db seeds:
rake db:seeds
To run the PingCRM tests, run:
rails test:system
- Ruby 3.1
- Ruby on Rails 7
- Original work by Jonathan Reinink (@reinink) and contributors
- Port to Ruby on Rails by Georg Ledermann (@ledermann)
- Port from Webpacker to Vite Rails (@ElMassimo)