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.yml
service
to something unique - Edit
package.json
and name S3 bucket to same as yourservice
plus-assets
postfix - 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
TODO
s from code - Separate API & webapp in different projects
- Describe how to setup CloudFront distribution