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-01 13:16:23 -03:00
|
|
|
Setup local database by editing `.env`. Use whatever database (MySQL, Postgres, SQLite) you'd like here.
|
2019-03-05 18:10:11 -03:00
|
|
|
|
2019-04-01 13:16:23 -03:00
|
|
|
```
|
|
|
|
DB_CONNECTION=
|
|
|
|
DB_HOST=
|
|
|
|
DB_PORT=
|
|
|
|
DB_DATABASE=
|
|
|
|
DB_USERNAME=
|
|
|
|
DB_PASSWORD=
|
|
|
|
```
|
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
|