This package is created "from sratch" using this article
It supports react server side rendering was following these articles:
It is containerized using Docker:
docker build . -t 'xtonyx/react_ssr'
docker run -d -p 3000:3000 --name react_ssr xtonyx/react_ssr
NPM scripts description:
npm run build:ui
builds static UI files (into ./dist/ directory)npm run build:server
builds JS files for Node web server (into ./server/dist/ directory) (that renders react application from ./dist/index.html file)npm run server
starts Node web server (that is built bynpm run build:server
)npm run start:ui
starts webpack web server for UI development and troubleshooting onlynpm run storybook
starts storybook.js for better react component development experiencenpm run docker:run_clean
cleans existing local docker image and container, builds local docker image, runs local docker container