Skip to content

addhome2001/koa2-redux-universal

Repository files navigation

koa2-redux-universal

The pure-SSR is the branch for someone who needs boilerplate.

Contains

Features

  • Client
    • HMR(Port: 8081)
    • Code-Splitting(lazy load)
    • Manifest cache
    • CSS-module
    • React-Redux-Universal
  • Server
    • CSRF
    • Passport

Requirements

Make sure your system has the correct Node and Npm versions.

  • Node 8

Usage

  • Changing source code in /src and click save.
  • open http:localhost:8000.
  • Modified the content of env.sample and assign a new name to .env.

Install

yarn

Docker-Compose

build

docker-compose build

Development

docker-compose up

Production

docker-compose -f docker-compose.prod.yml up

down

docker-compose down -v

LICENSE