Home

Awesome

<h1 align="center"> <a href="https://vite-rails.netlify.app/"> <img src="https://raw.githubusercontent.com/ElMassimo/vite_rails/main/logo.svg" width="120px"/> </a> <br> <a href="https://vite-rails.netlify.app/"> PingCRM on Vite Rails </a> </h1>

Unlike the original demo, this replaces webpacker with Vite Rails, which provides a substantially faster development experience.

It also leverages <kbd>js_from_routes</kbd> to auto-generate API methods to effortlessly integrate with the Rails backend, which works nicely in combination with <kbd>vite-plugin-full-reload</kbd>

Styles are powered by Windi CSS, a faster alternative to Tailwind CSS.

Demo 🚀

To learn more about how to move from webpacker to Vite Rails, check this pull request.

To learn more about how <kbd>js_from_routes</kbd> can help you simplify your code, check this pull request.

Visit the live demo. Login with:

<img width="1299" alt="Screen Shot 2021-02-05 at 16 34 59" src="https://user-images.githubusercontent.com/1158253/107080663-5ca35a80-67d0-11eb-90aa-4a2e1db539c5.png">

Installation 💿

Clone the repo locally:

git clone https://github.com/ElMassimo/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), and login with:

Running tests

To run the PingCRM tests, run:

rails test:system

Requirements

Credits