This is a forked repository of the original Ping CRM, a demo project showcasing Inertia.js with Laravel.
You can access this demo application online at https://pingcrm.richan.id/.
This demo application illustrates how Laravel and Inertia.js work perfectly with the Turso database. The original Ping CRM uses an SQLite database, but this forked repository uses the Turso database.
This demo has adopted the Turso Embedded Replica feature, boosting the application's performance to be super fast! 🚀
The Turso database connection in this demo application is made possible by integrating the Turso Database Driver for Laravel package.
Clone the repo locally:
git clone https://github.com/inertiajs/pingcrm.git pingcrm
cd pingcrmInstall PHP dependencies:
composer installInstall NPM dependencies:
npm ciBuild assets:
npm run devSetup configuration:
cp .env.example .envGenerate application key:
php artisan key:generateSave your Turso database credentials in the .env file. You can either obtain the Turso database credentials by following the instructions here or use the Turso local development server as described in the local development guide. If you're using the local development server, set the DB_URL to http://localhost:8080 and leave the DB_ACCESS_TOKEN empty.
DB_CONNECTION=turso
DB_URL=http://localhost:8080
DB_ACCESS_TOKEN=
DB_REPLICA=
DB_PREFIX=
DB_FOREIGN_KEYS=true
Run database migrations:
php artisan migrateRun database seeder:
php artisan db:seedRun the dev server (the output will give the address):
php artisan serveYou're ready to go! Visit Ping CRM in your browser, and login with:
- Username: johndoe@example.com
- Password: secret
To run the Ping CRM tests, run:
phpunit
