Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spatie/laravel-server-side-rendering-examples
Example app for https://github.com/spatie/laravel-server-side-rendering
https://github.com/spatie/laravel-server-side-rendering-examples
Last synced: 11 days ago
JSON representation
Example app for https://github.com/spatie/laravel-server-side-rendering
- Host: GitHub
- URL: https://github.com/spatie/laravel-server-side-rendering-examples
- Owner: spatie
- License: mit
- Created: 2018-01-23T10:07:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-09T16:22:12.000Z (over 2 years ago)
- Last Synced: 2024-05-09T22:23:07.813Z (about 2 months ago)
- Language: PHP
- Homepage: https://sebastiandedeyne.com/posts/2018/server-side-rendering-javascript-from-php
- Size: 395 KB
- Stars: 104
- Watchers: 7
- Forks: 29
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Lists
- awesome-stars - spatie/laravel-server-side-rendering-examples - Example app for https://github.com/spatie/laravel-server-side-rendering (PHP)
README
[
](https://supportukrainenow.org)
# Example implementations of our laravel-server-side rendering package
This repo contains examples of server-side rendered JavaScript SPAs rendered in a Laravel application using our home grown [spatie/laravel-server-side-rendering](https://github.com/spatie/laravel-server-side-rendering) package.
We've got a a `vue` + `vuex` + `vue-router` example and a very basic `react` + `react-router` example that will be expanded in the future.
![](https://user-images.githubusercontent.com/1561079/35285451-b79f4fa8-005d-11e8-9f16-174778271f0b.png)
## Support us
[
](https://spatie.be/github-ad-click/laravel-server-side-rendering-examples)
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
## Installation
You can install the app locally like you'd install any other Laravel app.
```bash
git clone [email protected]:spatie/laravel-server-side-rendering-examples.git
composer install
yarn
yarn production
```If you want to see server side rendering in action, set your `.env` file's `APP_ENV` key to `production`.
## Credits
- [Sebastian De Deyne](https://github.com/sebastiandedeyne)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.