A Mithril.js demo application to illustrate how Inertia.js works.
With Inertia you are able to build single-page applications using classic server-side routing and controllers, without building an API.
This application is a port of the original Ping CRM written in Laravel and Vue.js.
The frontend is written in Mithril.js, a modern client-side JavaScript framework for building Single Page Applications. The backend is edited as little as possible to enable direct comparison between Mithril.js and Vue.js, and to merge the upstream repository into this fork without effort.
https://pingcrm-mithril.tebe.ch
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:generateCreate an SQLite database. You can also use another database (MySQL, Postgres), simply update your configuration accordingly.
touch database/database.sqliteRun 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: [email protected]
- Password: secret
To run the Ping CRM tests, run:
phpunit
- Original work by Jonathan Reinink (@reinink) and contributors
- Port to Mithril.js by Thomas Breuss (@tbreuss)