2019-04-01 13:16:23 -03:00
|
|
|
# Ping CRM
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-01 13:16:23 -03:00
|
|
|
A demo application to illustrate how Inertia.js works.
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-01 13:16:23 -03:00
|
|
|
## Installation
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-01 13:16:23 -03:00
|
|
|
Clone the repo locally:
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-01 13:16:23 -03:00
|
|
|
```sh
|
|
|
|
git clone git@github.com:inertiajs/pingcrm.git pingcrm
|
|
|
|
cd pingcrm
|
|
|
|
```
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-01 13:16:23 -03:00
|
|
|
Install PHP dependencies:
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-01 13:16:23 -03:00
|
|
|
```sh
|
|
|
|
composer install
|
|
|
|
```
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-01 13:16:23 -03:00
|
|
|
Install NPM dependencies:
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-01 13:16:23 -03:00
|
|
|
```sh
|
|
|
|
npm install
|
|
|
|
```
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-01 13:16:23 -03:00
|
|
|
Build assets:
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-01 13:16:23 -03:00
|
|
|
```sh
|
|
|
|
npm run dev
|
|
|
|
```
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-01 13:16:23 -03:00
|
|
|
Setup configuration:
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-01 13:16:23 -03:00
|
|
|
```sh
|
|
|
|
cp .env.example .env
|
|
|
|
```
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-01 13:16:23 -03:00
|
|
|
Generate application key:
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-01 13:16:23 -03:00
|
|
|
```sh
|
|
|
|
php artisan key:generate
|
|
|
|
```
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-02 14:05:26 -03:00
|
|
|
Create an SQLite database. You can also use another database (MySQL, Postgres), simply update your configuration accordingly.
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-02 14:05:26 -03:00
|
|
|
```sh
|
|
|
|
touch database/database.sqlite
|
2019-04-01 13:16:23 -03:00
|
|
|
```
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-01 13:16:23 -03:00
|
|
|
Run database migrations:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
php artisan migrate
|
|
|
|
```
|
|
|
|
|
|
|
|
Run database seeder:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
php artisan db:seed
|
|
|
|
```
|
|
|
|
|
|
|
|
You're ready to go! Visit Ping CRM in your browser, and login with:
|
|
|
|
|
|
|
|
- **Username:** johndoe@example.com
|
|
|
|
- **Password:** secret
|