twreporter-reacttwreporter site with nodejs
TW Reporter
New Media foundation in Taiwan.
Contains
- PWA
 - Webpack
 - Babel
 - React
 - Redux
 - Isomorphic/Universal rendering
 - Express
 - Hot Module Replacement
 - Code splitting
 
Environment
Install node(https://nodejs.org/en/) @7.9.0 above.
Installation
yarn install
Production start
make start
Development start
make dev
Build docker image
// install dependencies first
yarn install
// build the webpack bundles and transpile es6 to es5
make build
// build docker image
docker build -t twreporter-react:latest .
Testing
Run unit tests
make test
Run ui-test (It will take some time to compare screenshots)
// start dev servers for ui-test
make dev
// run ui-test
make ui-test
License
- Copyright (C) 2015 - 2018 The Reporter 報導者. All rights reserved.
 - Distributed under the GNU AGPL v3.0
 
评论
