Switch branches/tags
Nothing to show
Clone or download
Latest commit b357bd3 Mar 28, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app First commit Jan 23, 2018
bootstrap First commit Jan 23, 2018
config Update Vue example Jan 31, 2018
database First commit Jan 23, 2018
public Delete mix manifest Jan 23, 2018
resources JS cleanup Mar 28, 2018
routes First commit Jan 23, 2018
storage Add ssr folder to git repo (fixes #1) Jan 24, 2018
tests First commit Jan 23, 2018
.editorconfig Frontend cleanup Mar 28, 2018
.env.example First commit Jan 23, 2018
.eslintignore Frontend cleanup Mar 28, 2018
.eslintrc JS cleanup Mar 28, 2018
.gitattributes First commit Jan 23, 2018
.gitignore Ignore mix manifest Jan 23, 2018
.prettierrc Tweaks Jan 23, 2018
LICENSE.md License & readme Jan 23, 2018
README.md Update readme Jan 23, 2018
artisan First commit Jan 23, 2018
composer.json Update Vue example Jan 31, 2018
composer.lock Update deps Mar 28, 2018
package.json JS cleanup Mar 28, 2018
phpunit.xml First commit Jan 23, 2018
server.php First commit Jan 23, 2018
tailwind.js JS cleanup Mar 28, 2018
webpack.mix.js Tweaks Jan 23, 2018
yarn.lock Frontend cleanup Mar 28, 2018

README.md

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 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.

Installation

You can install the app locally like you'd install any other Laravel app.

git clone git@github.com: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

Support us

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

Does your business depend on our contributions? Reach out and support us on Patreon. All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.

License

The MIT License (MIT). Please see License File for more information.