A demo application to illustrate how Inertia.js works with:
- Server-side adapter: masonite-inertia for MasoniteFramework
- Client-side adapter: inertia.js for Vue.js
🎉 https://pingcrm-masonite.herokuapp.com/
Disclaimer :
- the demo is based on the official Inertia.js demo (for the Vue part)
- there are still bugs because it's a WIP
This demo is using masonite-js-routes to publish routes client-side and ziggy-js
which provides a very handy route()
helper in Javascript !
Clone the repo locally:
https://github.com/girardinsamuel/pingcrm-masonite.git pingcrm
cd pingcrm
Install Python dependencies:
pip install -r requirements.txt
Install NPM dependencies:
npm ci
Build assets:
npm run dev
Setup configuration:
cp .env.example .env
Generate application key and add it to APP_KEY
in .env
file:
python craft key
Create an SQLite database. You can also use another database (MySQL, Postgres), simply update your configuration accordingly.
touch database/database.sqlite
Run database migrations:
python craft migrate
Run database seeder:
python craft seed:run
Run the dev server (the output will give the address):
python craft serve
You're ready to go! Visit Ping CRM in your browser, and login with:
- Username: johndoe@example.com
- Password: secret
There is no tests yet for this demo of Ping CRM.
npm run prod
git checkout production
git merge master
# main or master only can be deployed to prod in Heroku
git push heroku production:master
heroku run craft migrate
heroku run craft seed:run