{"repo":"denchiklut/ssr-boilerplate","free":true,"listed":false,"github":"https://github.com/denchiklut/ssr-boilerplate","clone":"git clone https://github.com/denchiklut/ssr-boilerplate.git","description":"SSR boilerplate","language":"TypeScript","stars":35,"topics":["express","ssr","hmr","react","webpack","webpack-dev-middleware","webpack-hot-middleware","jest","react-testing-library","typescript"],"license":null,"category":"saas-starters-boilerplates","readme_excerpt":"SSR Boilerplate You can use this project as a boilerplate for your SSR applications. Feel free to suggest improvements If you are looking for renderToPipeableStream setup switch to the feat/pipable-stream branch Features - [x] SSR - [x] HMR - [x] Code splitting - [x] SPA mode - [x] Polyfills - [x] PWA - [x] Svgr support for .icon.svg files - [x] local https - [x] PipeableStream support SSR Suspense - If you want to try React 18's SSR Suspense api such as renderToPipeableStream , switch to the feat/pipable-stream branch. - Also, there is en example for setting up suspense api with CSS-in-JS library in our case MUI just switch to the feat/suspense-mui branch. - I also wrote a small article about SSR with React 18 . For those interested in further information, feel free to check my post on medium Startup project Step 1. Project setup Before starting work with the project, run the command: Step 2. Https setup If you need to use https, follow these steps: 1. in setup.sh change the domain variable to your domain 2. run the command pnpm setup 3. finally add your CLIENT HOST variable to .env file as https:// :PORT Step 2. Environment variables You can use .env file to specify environment variables. This file is ignored by git. Adding new env variable 1. Add it to .env file 2. For TS completion and validation add it to envSchema in src/common/env/index.ts 3. If this variable needs to be accessible from both client & server make sure it's name starts with prefix CLIENT 4. You can chang","default_branch":null,"files":null,"tree":[],"storefront":"/r/denchiklut","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/denchiklut/ssr-boilerplate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}