Using Netlify for hosting and for serverless
- install dependencies
yarn
- start the lambda functions server and client react application
yarn start
yarn deploy
This will perform two actions
- build the lambdas and output the results to the
/lambdas
directory - deploys the build artifacts to a staging environment
- if everything looks good on staging run the following command
netlify deploy --prod
https://github.com/netlify/cli
https://github.com/netlify/netlify-lambda
https://www.netlify.com/docs/functions/#javascript-lambda-functions
https://functions.netlify.com/examples/