Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/arpite/arpite
- Owner: arpite
- License: mit
- Created: 2022-06-27T09:20:18.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-01T13:34:44.000Z (10 months ago)
- Last Synced: 2024-10-13T07:49:18.077Z (4 months ago)
- Topics: builder, dashboards, forms, inertia, laravel, tables, tailwindcss
- Language: PHP
- Homepage:
- Size: 5.18 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
]
```