DEV Community

Anton Reshetov
Anton Reshetov

Posted on

Vue SSR Boilerplate

Hi here!

I made fork of vue-cli-ssr-example that adds some additional features.

Features

Server Side Rendering

  • Vue + vue-router + vuex working together
  • Server-side data pre-fetching
  • Client-side state & DOM hydration
  • Route-level code splitting

Progressive Web App

  • App manifest

Roadmap

  • Service worker

GitHub logo antonreshetov / vue-ssr-boilerplate

Vue SSR Boilerplate - Vuex & vue-router, server-side data pre-fetching, docker

Vue SSR Boilerplate

A fork of vue-cli-ssr-example that adds some additional features.

Features

Server Side Rendering

  • Vue + vue-router + vuex working together
  • Server-side data pre-fetching
  • Client-side state & DOM hydration
  • Route-level code splitting

Progressive Web App

  • App manifest

Usage

Install dependencies:

yarn

Start dev server:

yarn serve
Enter fullscreen mode Exit fullscreen mode

Build for production:

yarn build
Enter fullscreen mode Exit fullscreen mode

Start production server:

yarn start
Enter fullscreen mode Exit fullscreen mode

Docker

Build & run

docker-compose up --build -d
Enter fullscreen mode Exit fullscreen mode

Roadmap

  • Service worker
  • Update readme

I hope for someone it will be useful. For me, very))

Top comments (1)

Collapse
 
kp profile image
KP

@antonreshetov not sure if you're also a Laravel developer, but can this work with Laravel? Examples would be neat :)