This is a template for Serverless Framework / Python backend with a React frontend hosted in S3.
There's version with Cognito auth in a separate branch.
- Go through the steps in server README to deploy the backend.
- After the first deploy, you get the url where the app is hosted. Add it in the config.js file in frontend folder.
- Create a publicly accessible bucket(https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) in S3 for hosting the frontend.
- Add the name of the bucket in the frontend/package.json deploy script.
- Note that this app uses the serverless service as the default AWS profile, so you should configure this profile with
aws configure --profile SERVICE_NAME
or remove the --profile option from frontend deploy script to use your default profile. - Deploy the frontend with
yarn deploy
in the frontend folder. - Access your frontend in http://my-bucket-name.s3-website.region.amazonaws.com!
For information about running the app locally, refer to the README's in the frontend/ and backend/ folders.