/pingcrm-masonite

PingCRM Inertia.js demo with Masonite/Vue.js

Primary LanguageVueMIT LicenseMIT

Ping CRM

A demo application to illustrate how Inertia.js works with:

🎉 https://pingcrm-masonite.herokuapp.com/

Disclaimer :

This demo is using masonite-js-routes to publish routes client-side and ziggy-js which provides a very handy route() helper in Javascript !

Installation

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:

Running tests

There is no tests yet for this demo of Ping CRM.

Deploying in production (Heroku)

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