pingcrm/readme.md

82 lines
1.1 KiB
Markdown
Raw Normal View History

# Ping CRM
2019-03-05 18:10:11 -03:00
A demo application to illustrate how Inertia.js works.
2019-03-05 18:10:11 -03:00
2019-04-04 17:00:50 -03:00
![](https://raw.githubusercontent.com/inertiajs/pingcrm/master/screenshot.png)
## Installation
2019-03-05 18:10:11 -03:00
Clone the repo locally:
2019-03-05 18:10:11 -03:00
```sh
git clone https://github.com/inertiajs/pingcrm.git pingcrm
cd pingcrm
```
2019-03-05 18:10:11 -03:00
Install PHP dependencies:
2019-03-05 18:10:11 -03:00
```sh
composer install
```
2019-03-05 18:10:11 -03:00
Install NPM dependencies:
2019-03-05 18:10:11 -03:00
```sh
npm ci
```
2019-03-05 18:10:11 -03:00
Build assets:
2019-03-05 18:10:11 -03:00
```sh
npm run dev
```
2019-03-05 18:10:11 -03:00
Setup configuration:
2019-03-05 18:10:11 -03:00
```sh
cp .env.example .env
```
2019-03-05 18:10:11 -03:00
Generate application key:
2019-03-05 18:10:11 -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-03-05 18:10:11 -03:00
Run database migrations:
```sh
php artisan migrate
```
Run database seeder:
```sh
php artisan db:seed
```
2019-08-03 15:43:52 -03:00
Run the dev server (the output will give the address):
```sh
php artisan serve
```
You're ready to go! Visit Ping CRM in your browser, and login with:
- **Username:** johndoe@example.com
- **Password:** secret
2019-04-08 10:40:13 -03:00
## Running tests
To run the Ping CRM tests, run:
```
phpunit
```