Built based on Create React App
- Node.js
v6.5.0
or later. - Serverless CLI v1.9.0 or later. You can run
npm install -g serverless
to install it. - Yarn. Follow instrustions on the official site to install it.
- Clone the project to local folder;
$> yarn
to install dependencies;$> yarn lambda
to serve lambda locally;- In another terminal window
$> yarn start
to serve JS/CSS and other assets locally.
- Set-up an AWS account. If you don't already have one, you can sign up for a free tier.
- Set-up AWS credentials.
$> yarn deploy
to deploy everything to the AWS.
start
- runs locally the client React application;build
- builds all the client assets so that's ready for deployment;lambda
- serves lambda functions locally;deploy:lambda
- deploys lambda and API gateway (as well as all other services you define in the serverless.yml);deploy:static
- does build and deploys all static client content (everything from the /client/dist folder) to the S3 bucket;deploy
- first does the deploy for lambda then for the static content.