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

Lists

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.