An open API service indexing awesome lists of open source software.

https://github.com/Landish/pingcrm-react

⚛️ Ping CRM React - A demo app to illustrate how Inertia.js works with Laravel and React.
https://github.com/Landish/pingcrm-react

demo inertia inertia-react inertiajs laravel laravel-framework react react-helmet react-hooks reactjs tailwindcss typescript typescript-react

Last synced: about 1 month ago
JSON representation

⚛️ Ping CRM React - A demo app to illustrate how Inertia.js works with Laravel and React.

Awesome Lists containing this project

README

        

# Ping CRM React

A demo application to illustrate how [Inertia.js](https://inertiajs.com/) works with [Laravel](https://laravel.com/) and [React](https://reactjs.org/).

> This is a port of the original [Ping CRM](https://github.com/inertiajs/pingcrm) written in Laravel and Vue.

![](https://raw.githubusercontent.com/liorocks/pingcrm-react/master/screenshot.png)

## Installation

Clone the repo locally:

```sh
git clone https://github.com/liorocks/pingcrm-react.git
cd pingcrm-react
```

Install PHP dependencies:

```sh
composer install
```

Install NPM dependencies:

```sh
npm install
```

Build assets:

```sh
npm run dev
```

Setup configuration:

```sh
cp .env.example .env
```

Generate application key:

```sh
php artisan key:generate
```

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

```sh
touch database/database.sqlite
```

Run database migrations:

```sh
php artisan migrate
```

Run database seeder:

```sh
php artisan db:seed
```

Run artisan server:

```sh
php artisan serve
```

You're ready to go! [Visit Ping CRM](http://127.0.0.1:8000/) in your browser, and login with:

- **Username:** [email protected]
- **Password:** secret

## Running tests

To run the Ping CRM tests, run:

```
php artisan test
```

## Credits

- Original work by Jonathan Reinink (@reinink) and contributors
- Port to Ruby on Rails by Georg Ledermann (@ledermann)
- Port to React by Lio (@liorocks)