Skip to content
Ping CRM on Yii 2 - A Yii 2 demo application to illustrate how Inertia.js works.
PHP Vue CSS JavaScript Shell Batchfile
Branch: master
Clone or download

Latest commit

Latest commit 574e2f8 Mar 29, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Deploy dev versions Feb 26, 2020
assets Move inertia css&js to assets subfolder Feb 29, 2020
commands Detach User behaviours when seeding Feb 19, 2020
components Use components folder for single one classes Feb 18, 2020
config Composer update, bootstrap inertia component Feb 29, 2020
controllers Use own and layouted error Feb 21, 2020
database Add sqlite with db migrations Feb 8, 2020
mail/layouts
migrations Implement user controller and model, use SoftDeleteTrait, throw 404 i… Feb 16, 2020
models
resources Configure vue.js and tailwind, add vue content from demo.pingcrm Feb 9, 2020
runtime Create basic app Feb 8, 2020
tests Create basic app Feb 8, 2020
vagrant Create basic app Feb 8, 2020
views Set abs url for html base href Feb 29, 2020
web Reactivate YII_DEBUG and YII_ENV constants Feb 26, 2020
.bowerrc Create basic app Feb 8, 2020
.gitignore Move inertia css&js to assets subfolder Feb 29, 2020
LICENSE.md Create basic app Feb 8, 2020
README.md Add status badge Mar 1, 2020
Vagrantfile Create basic app Feb 8, 2020
codeception.yml Create basic app Feb 8, 2020
composer.json Update composer.json Mar 2, 2020
composer.lock Composer update Mar 2, 2020
docker-compose.yml
package-lock.json Fix security issue Mar 29, 2020
package.json Fix security issue Mar 29, 2020
postcss.config.js Implement organization controller, fixed postcss config, and other ni… Feb 12, 2020
requirements.php
screenshot.png Update readme Feb 16, 2020
tailwind.config.js
webpack.config.js Move inertia css&js to assets subfolder Feb 29, 2020
yii
yii.bat Create basic app Feb 8, 2020

README.md

Build & Deploy

Ping CRM on Yii 2

A Yii 2 demo application to illustrate how Inertia.js works.

With Inertia you are able to build single-page apps 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 based on the Yii 2 Basic Project Template.

Demo

https://pingcrm-yii2.tebe.ch

Installation

Clone the repo locally:

git clone https://github.com/tbreuss/pingcrm-yii2 pingcrm-yii2
cd pingcrm-yii2

Install PHP dependencies:

composer install

Install NPM dependencies:

npm ci

Build assets:

npm run dev
npm run css-dev

Create an SQLite database. You can also use another database (MySQL, Postgres), simply update your configuration accordingly.

touch database/database.sqlite

Run database migrations:

php yii migrate

Run database seeder:

php yii db/seed

Run the dev server (the output will give the address):

php yii serve

You're ready to go! Visit Ping CRM in your browser, and login with:

Running tests

To run the Ping CRM tests, run:

(to be done)

Requirements

  • PHP >= 5.6.0
  • Node.js & NPM
  • SQLite

Credits

  • Original work by Jonathan Reinink (@reinink) and contributors
  • Port to Yii 2 by Thomas Breuss (@tbreuss)
You can’t perform that action at this time.