Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/arpite/arpite

An open-source Laravel library for building high-quality, accessible applications and administration dashboards.
https://github.com/arpite/arpite

builder dashboards forms inertia laravel tables tailwindcss

Last synced: 3 months ago
JSON representation

An open-source Laravel library for building high-quality, accessible applications and administration dashboards.

Awesome Lists containing this project

README

        


Arpite hero image

# Arpite

An open-source Laravel library for building high-quality, accessible applications and administration dashboards. Built using [Inertia.js](https://inertiajs.com/), [React](https://reactjs.org/), [TailwindCSS](https://tailwindcss.com/), and [HeadlessUI](https://headlessui.com/).

## Getting Started

**⚠️ Arpite is currently in early development and APIs are likely to change quite often. Use in production on your own risk!**

1. Install the packages from Composer and NPM

```bash
composer require arpite/arpite
yarn add @arpite/arpite
```

2. Render Arpite in `resources/js/app.js` file

```js
import { Arpite } from "@arpite/arpite";
import "@arpite/arpite/resources/dist/arpite.css";

Arpite.render();
```

3. Build assets

```bash
yarn build
```

4. Add to AppServiceProvider boot() method

```php
Inertia::share([
"baseUrl" => fn() => URL::to("/"),
"applicationName" => fn() => env("APP_NAME"),
"notification" => fn() => Notification::getAndClear(),
"resetFormIdentifier" => fn() => Session::get("resetFormIdentifier"),
"csrfToken" => fn() => csrf_token(),
"balance" => null,
]);
```

5. Add `HandleArpiteRequests` middleware to `web` group inside `app/Http/Kernel.php` file

```php
'web' => [
\Arpite\Core\Middlewares\HandleArpiteRequests::class
]
```