Serverless Framework boilerplate with React server-side rendering.
sls install -u https://github.com/artoliukkonen/serverless-isomorphic-react-boilerplate
cd serverless-isomorphic-react-boilerplate
yarn
- Edit
serverless.ymlserviceto something unique - Edit
package.jsonand name S3 bucket to same as yourserviceplus-assetspostfix - Run
yarn start
This option allowes you to bypass server-side rendering and develop client using HMR.
Start devserver by running
yarn start
This options allowes you to test server-side rendering offline.
First run client bundler in watch mode
yarn dev
Then in another terminal window, launch serverless-offline
yarn offline
Run yarn deploy to deploy production version to AWS.
- Fix
TODOs from code - Separate API & webapp in different projects
- Describe how to setup CloudFront distribution