https://github.com/runthis/laravel-inertia-react-ssr
Laravel 10, inertia, react, ssr, scss, mantine, phpcs, eslint
https://github.com/runthis/laravel-inertia-react-ssr
inertiajs laravel react server-side-rendering ssr
Last synced: 27 days ago
JSON representation
Laravel 10, inertia, react, ssr, scss, mantine, phpcs, eslint
- Host: GitHub
- URL: https://github.com/runthis/laravel-inertia-react-ssr
- Owner: runthis
- Created: 2023-12-10T18:50:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-23T06:55:51.000Z (11 months ago)
- Last Synced: 2025-02-14T22:35:02.197Z (3 months ago)
- Topics: inertiajs, laravel, react, server-side-rendering, ssr
- Language: PHP
- Homepage:
- Size: 443 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
This is an opinionated Laravel 10 install using React with Server-side Rendering (SSR).
## Setup
`git clone [email protected]:runthis/laravel-inertia-react-ssr.git my-app``bash ./bin/init.sh`
## Accessing the site
http://localhost/
## Accessing the starter react page
http://localhost/test
## Using SSR
`sail artisan inertia:start-ssr`
## Packages & Features
### Base
- [Laravel 10](https://laravel.com/docs/10.x/releases)
- [Inertia](https://inertiajs.com/)
- [React](https://react.dev/)
- [SASS](https://www.npmjs.com/package/sass)### Development
- [Laravel Sail](https://laravel.com/docs/10.x/sail)
- PHP 8.2
- MariaDB
- Redis
- Meilisearch
- Mailpit
- [ESLint](https://eslint.org/docs/latest/)
- [PHPCS](https://github.com/squizlabs/PHP_CodeSniffer)
- [Slevomat](https://github.com/slevomat/coding-standard)
- [Vite](https://vitejs.dev/)
- [Dev Container](https://code.visualstudio.com/docs/devcontainers/containers)### Features
- [Server-side Rendering](https://inertiajs.com/server-side-rendering)
- Default app and ssr files
- Start with `sail artisan inertia:start-ssr`
- [Tabler Icons React](https://tabler.io/icons)
- [Mantine](https://mantine.dev/)## Custom ports
*If you want to change the default ports you can add env variables to your local .env file and restart the container*
#### Main site
`APP_PORT=####`
#### MariaDB
`FORWARD_DB_PORT=####`
#### Redis
`FORWARD_REDIS_PORT=####`
#### Meilisearch
`FORWARD_MEILISEARCH_PORT=####`
#### Mailpit
`FORWARD_MAILPIT_PORT=####`
`FORWARD_MAILPIT_DASHBOARD_PORT=####`