react-ssr-spa is a react app that is server side rendered and is a single page app.
Should you use this as a starting point for your application? A good way to know is if you answered yes to any of the following questions.
Do we need SEO?
Do we need fast page loads without a loading spinner?
Do we need a fast app like website?
Requirements:
node.js v8.9.1 npm v5.5.1
git clone git@github.com:michaelBenin/react-ssr-spa.git
cd react-ssr-spa
npm i
npm start
Open browser http://localhost:8001/
(Optional) Create an .env file at the root of the directory. See .env.example in root.
npm start
Optimized for use with:
npm run server-unit-test
npm run server-integration-test
npm run client-unit-test
npm run client-unit-test-watch
npm run client-integration-test
npm run client-integration-test-watch
npm run acceptance-test
npm run js-lint
npm run js-lint-fix
npm run style-lint
npm run style-lint-fix
npm run fix-all
npm run js-doc
npm run style-doc
npm run docs
npm run complexity-report
npm run build-prod
npm run build-prod
NODE_ENV=test node dist/server
npm run build-prod
Update package.json with the appropriate js and map files.
npm run analyzie-bundle
If PM2 is not installed:
npm i pm2 -g
To run server in production mode:
npm run prod-server
npm run create-upload-artifact
npm run upload-static-files
ansible-playbook -u ubuntu ./ansible/deploy/deploy.yml
ansible-playbook -u ubuntu ./ansible/deploy/deploy.yml
ansible-playbook -u ubuntu ./ansible/rollback/rollback.yml
https://github.com/facebook/react
https://github.com/reactjs/react-router
https://github.com/reactjs/redux
https://github.com/reactjs/react-redux
https://github.com/reactjs/react-router-redux
https://github.com/gaearon/redux-thunk
https://github.com/nfl/react-helmet
https://github.com/expressjs/express
https://github.com/rendrjs/rendr